Update index.py

This commit is contained in:
midoks
2019-05-18 15:28:09 +08:00
parent db4a7af2b5
commit a7cd64a54c
+3 -1
View File
@@ -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