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'