Add message about WordOps backend

This commit is contained in:
VirtuBox
2019-08-04 16:51:17 +02:00
parent ffb88b6a9b
commit a56ea8776e

View File

@@ -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')