From fc306f861fd5dc74db42b5c790b2fb1752f198df Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 29 Jan 2021 19:54:32 +0800 Subject: [PATCH] Update index.py --- plugins/socket5/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/socket5/index.py b/plugins/socket5/index.py index da7fc4117..eb8eb03c0 100755 --- a/plugins/socket5/index.py +++ b/plugins/socket5/index.py @@ -76,6 +76,10 @@ def initConf(): mw.execShell('cp -rf ' + tmp + ' /etc/opt/ss5') mw.execShell('cp -rf ' + tmp + ' ' + getServerDir()) + init_file = '/etc/init.d/ss5' + if os.path.exists(init_file): + mw.execShell('chmod +x' + init_file) + ss5_pwd = getServerDir() + '/ss5.passwd' if not os.path.exists(ss5_pwd): tmp = getPluginDir() + '/tmp/ss5.passwd'