Use WOConf in stack_pref

This commit is contained in:
VirtuBox
2019-12-08 01:36:08 +01:00
parent 3a514ce5a7
commit 4b45ac0c79
3 changed files with 6 additions and 42 deletions

View File

@@ -14,9 +14,9 @@ class WOConf():
"""nginx common configuration deployment"""
wo_php_version = ["php72", "php73", "php74"]
ngxcom = '/etc/nginx/common'
if not os.path.exists(ngxcom):
os.mkdir(ngxcom)
for wo_php in wo_php_version:
if not os.path.exists(ngxcom):
os.mkdir(ngxcom)
Log.debug(self, 'deploying templates for {0}'.format(wo_php))
data = dict(upstream="{0}".format(wo_php),
release=WOVar.wo_version)