From aacc87c190a775e7fbe46ef604df62aa1fecc338 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 14 Sep 2024 11:57:28 +0800 Subject: [PATCH] Update index.py --- plugins/acme_pandominassl_apply/index.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/acme_pandominassl_apply/index.py b/plugins/acme_pandominassl_apply/index.py index f35e4a930..96a2744ad 100755 --- a/plugins/acme_pandominassl_apply/index.py +++ b/plugins/acme_pandominassl_apply/index.py @@ -42,11 +42,6 @@ def getConf(): return path -def getConfTpl(): - path = getPluginDir() + "/config/redis.conf" - return path - - def getInitDTpl(): path = getPluginDir() + "/init.d/" + getPluginName() + ".tpl" return path @@ -156,6 +151,10 @@ def initDreplace(): if not os.path.exists(run_log_file): mw.writeFile(run_log_file,'') + hook_file = getConf() + if not os.path.exists(hook_file): + mw.writeFile(hook_file,'') + # initd replace if not os.path.exists(file_bin): content = mw.readFile(file_tpl)