From bf73b25f4f20cae2ce4aed4bae23db0b3669dcff Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 19 Jun 2022 16:00:04 +0800 Subject: [PATCH] Update index.py --- plugins/redis/index.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/redis/index.py b/plugins/redis/index.py index 6b589563a..5f19ea3f2 100755 --- a/plugins/redis/index.py +++ b/plugins/redis/index.py @@ -91,10 +91,9 @@ def initDreplace(): # config replace dst_conf = getServerDir() + '/redis.conf' - if not os.path.exists(dst_conf): - conf_content = mw.readFile(getConfTpl()) - conf_content = conf_content.replace('{$SERVER_PATH}', service_path) - mw.writeFile(dst_conf, conf_content) + conf_content = mw.readFile(getConfTpl()) + conf_content = conf_content.replace('{$SERVER_PATH}', service_path) + mw.writeFile(dst_conf, conf_content) # systemd systemDir = '/lib/systemd/system'