Add message about WordOps backend
This commit is contained in:
@@ -594,9 +594,10 @@ class WOStackController(CementBaseController):
|
|||||||
WOGit.add(self,
|
WOGit.add(self,
|
||||||
["/etc/nginx"], msg="Adding Nginx into Git")
|
["/etc/nginx"], msg="Adding Nginx into Git")
|
||||||
WOService.reload_service(self, 'nginx')
|
WOService.reload_service(self, 'nginx')
|
||||||
|
server_ip = requests.get('http://v4.wordops.eu')
|
||||||
if set(["nginx"]).issubset(set(apt_packages)):
|
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"
|
"You can access it on : https://{0}:22222"
|
||||||
.format(server_ip))
|
.format(server_ip))
|
||||||
print("HTTP Auth User Name: WordOps" +
|
print("HTTP Auth User Name: WordOps" +
|
||||||
@@ -607,6 +608,9 @@ class WOStackController(CementBaseController):
|
|||||||
"Name: WordOps"] +
|
"Name: WordOps"] +
|
||||||
["HTTP Auth Password : {0}"
|
["HTTP Auth Password : {0}"
|
||||||
.format(passwd)])
|
.format(passwd)])
|
||||||
|
self.msg = (self.msg + ["WordOps backend is available "
|
||||||
|
"on https://{0}:22222"
|
||||||
|
.format(server_ip)])
|
||||||
else:
|
else:
|
||||||
WOService.restart_service(self, 'nginx')
|
WOService.restart_service(self, 'nginx')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user