mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user