From a56ea8776ec7d9fe94e63402a843524c63c8c527 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Sun, 4 Aug 2019 16:51:17 +0200 Subject: [PATCH] Add message about WordOps backend --- wo/cli/plugins/stack.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index 4ab3e7f..739dec5 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -594,9 +594,10 @@ class WOStackController(CementBaseController): WOGit.add(self, ["/etc/nginx"], msg="Adding Nginx into Git") WOService.reload_service(self, 'nginx') + server_ip = requests.get('http://v4.wordops.eu') if set(["nginx"]).issubset(set(apt_packages)): - server_ip = requests.get('http://v4.wordops.eu') - print("WordOps backend configuration was successful\n" + + + print("WordOps backend configuration was successful\n" "You can access it on : https://{0}:22222" .format(server_ip)) print("HTTP Auth User Name: WordOps" + @@ -607,6 +608,9 @@ class WOStackController(CementBaseController): "Name: WordOps"] + ["HTTP Auth Password : {0}" .format(passwd)]) + self.msg = (self.msg + ["WordOps backend is available " + "on https://{0}:22222" + .format(server_ip)]) else: WOService.restart_service(self, 'nginx')