Update index.py

This commit is contained in:
midoks
2018-12-08 16:25:45 +08:00
parent 386ed67354
commit 7d54737873
+7 -7
View File
@@ -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():