Fix webroot variable in template

This commit is contained in:
VirtuBox
2020-01-17 11:57:15 +01:00
parent 2b16b5a0e3
commit 81fbb72fe1

View File

@@ -117,7 +117,8 @@ class WOSecureController(CementBaseController):
Log.info(self, "Please Enter valid port number :")
port = input("WordOps admin port [22222]:")
pargs.user_input = port
data = dict(release=WOVar.wo_version, port=pargs.user_input)
data = dict(release=WOVar.wo_version,
port=pargs.user_input, webroot='/var/www/')
WOTemplate.deploy(
self, '/etc/nginx/sites-available/22222',
'22222.mustache', data)