mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -88,14 +88,14 @@ def confReplace():
|
||||
public.writeFile(getServerDir() + '/nginx/conf/nginx.conf', content)
|
||||
|
||||
exe_bin = getServerDir() + "/bin/openresty"
|
||||
print public.execShell('chown -R ' + user + ':' + user_group + ' ' + exe_bin)
|
||||
print public.execShell('chmod 755 ' + exe_bin)
|
||||
print public.execShell('chmod u+s ' + exe_bin)
|
||||
public.execShell('chown -R ' + user + ':' + user_group + ' ' + exe_bin)
|
||||
public.execShell('chmod 755 ' + exe_bin)
|
||||
public.execShell('chmod u+s ' + exe_bin)
|
||||
|
||||
nginx_exe_bin = getServerDir() + "/nginx/sbin/nginx"
|
||||
print public.execShell('chown -R ' + user + ':' + user_group + ' ' + nginx_exe_bin)
|
||||
print public.execShell('chmod 755 ' + nginx_exe_bin)
|
||||
print public.execShell('chmod u+s ' + nginx_exe_bin)
|
||||
ng_exe_bin = getServerDir() + "/nginx/sbin/nginx"
|
||||
public.execShell('chown -R ' + user + ':' + user_group + ' ' + ng_exe_bin)
|
||||
public.execShell('chmod 755 ' + ng_exe_bin)
|
||||
public.execShell('chmod u+s ' + ng_exe_bin)
|
||||
|
||||
|
||||
def initDreplace():
|
||||
|
||||
Reference in New Issue
Block a user