Update index.py

pull/109/head
midoks 6 years ago
parent 6b78c05048
commit 95562d9476
  1. 4
      plugins/openresty/index.py

@ -132,7 +132,9 @@ def confReplace():
content = content.replace('{$OS_USER_GROUP}', user_group)
nconf = getServerDir() + '/nginx/conf/nginx.conf'
if not os.path.exists(nconf):
__content = public.readFile(nconf)
if __content.find('#user'):
public.writeFile(getServerDir() + '/nginx/conf/nginx.conf', content)
# give nginx root permission

Loading…
Cancel
Save