From d7fc975e0cefb5aef4ad7cebc74024146b98ef19 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Sun, 21 Apr 2024 18:18:13 +0200 Subject: [PATCH] Fix server_ip variable --- wo/cli/plugins/stack_pref.py | 9 +++------ wo/core/variables.py | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/wo/cli/plugins/stack_pref.py b/wo/cli/plugins/stack_pref.py index 50df2dc..b34a0ed 100644 --- a/wo/cli/plugins/stack_pref.py +++ b/wo/cli/plugins/stack_pref.py @@ -407,7 +407,7 @@ def post_pref(self, apt_packages, packages, upgrade=False): server_ip = WOFqdn.get_server_ip(self) if server_ip is None: - server_ip = "0.0.0.0" + server_ip = WOVar.wo_fqdn if set(["nginx"]).issubset(set(apt_packages)): print("WordOps backend configuration was successful\n" @@ -421,11 +421,8 @@ def post_pref(self, apt_packages, packages, upgrade=False): "Name: WordOps"] + ["HTTP Auth Password : {0}" .format(passwd)]) - self.msg = (self.msg + ["WordOps backend is available " - "on https://{0}:22222 " - "or https://{1}:22222" - .format(server_ip, - WOVar.wo_fqdn)]) + self.msg = (self.msg + [f'WordOps backend is available on https://{server_ip}:22222]) ' + 'or https://{WOVar.wo_fqdn}:22222']) data = dict(release=WOVar.wo_version) WOTemplate.deploy(self, '/opt/cf-update.sh', diff --git a/wo/core/variables.py b/wo/core/variables.py index 12f1b25..ca24c54 100644 --- a/wo/core/variables.py +++ b/wo/core/variables.py @@ -17,7 +17,7 @@ class WOVar(): # WordOps version wo_version = "3.19.1" # WordOps packages versions - wo_wp_cli = "2.9.0" + wo_wp_cli = "2.10.0" wo_adminer = "4.8.1" wo_phpmyadmin = "5.2.0" wo_extplorer = "2.1.15"