From 99576c4492ff3663c8837b8ef52ffd9d090f958a Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 13 Sep 2019 00:02:55 +0800 Subject: [PATCH] Update index.py --- plugins/rsyncd/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index 71c34e28e..e3a11c5c0 100755 --- a/plugins/rsyncd/index.py +++ b/plugins/rsyncd/index.py @@ -126,6 +126,9 @@ def initDreplace(): public.writeFile(file_bin, content) public.execShell('chmod +x ' + file_bin) + if os.path.exists('/usr/lib/systemd/system/rsyncd.service'): + public.execShell('rm -rf /usr/lib/systemd/system/rsyncd*') + return file_bin