Update index.py

This commit is contained in:
Mr Chen
2019-02-25 15:18:08 +08:00
parent 1d6664f01a
commit abc74b3e3b
+6 -1
View File
@@ -65,6 +65,11 @@ def getConf():
return path
def getConfTpl():
path = getPluginDir() + '/conf/nginx.conf'
return path
def getOs():
data = {}
data['os'] = public.getOs()
@@ -107,7 +112,7 @@ def checkAuthEq(file, owner='root'):
def confReplace():
service_path = os.path.dirname(os.getcwd())
content = public.readFile(getConf())
content = public.readFile(getConfTpl())
content = content.replace('{$SERVER_PATH}', service_path)
user = 'www'