From 7d54737873deb92c3ed7aeebe6abb833ff56a8cf Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 8 Dec 2018 16:25:45 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index cdd38d860..c011258dc 100755 --- a/plugins/openresty/index.py +++ b/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():