diff --git a/plugins/varnish/index.py b/plugins/varnish/index.py index 60af324a8..d05f8a3b3 100755 --- a/plugins/varnish/index.py +++ b/plugins/varnish/index.py @@ -46,6 +46,14 @@ def getInitDTpl(): return path +def contentReplace(content): + service_path = mw.getServerDir() + content = content.replace('{$ROOT_PATH}', mw.getRootDir()) + content = content.replace('{$SERVER_PATH}', service_path) + content = content.replace('{$SERVER_APP}', service_path + '/varnish') + return content + + def getArgs(): args = sys.argv[2:] tmp = {}