Update index.py

pull/109/head
midoks 7 years ago
parent 386ed67354
commit 7d54737873
  1. 16
      plugins/openresty/index.py

@ -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)
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)
public.execShell('chown -R ' + user + ':' + user_group + ' ' + exe_bin)
public.execShell('chmod 755 ' + exe_bin)
public.execShell('chmod u+s ' + 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():

Loading…
Cancel
Save