From 6927bcbdc98cc9632c45dafdcd8dae331e0fc158 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 15 Jul 2022 15:33:20 +0800 Subject: [PATCH] Update index.py --- plugins/varnish/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/varnish/index.py b/plugins/varnish/index.py index 84a7404ea..9b761e997 100755 --- a/plugins/varnish/index.py +++ b/plugins/varnish/index.py @@ -32,6 +32,9 @@ def getInitDFile(): def getConf(): + path = '/etc/varnish/vcl.conf' + if os.path.exists(path): + return path path = "/etc/varnish/default.vcl" return path