From 2dec7ca48d5b5d81a70ff334cccc46058d35272e Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 13 Sep 2019 01:43:05 +0800 Subject: [PATCH] Update index.py --- plugins/rsyncd/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index d108057d1..0d650725c 100755 --- a/plugins/rsyncd/index.py +++ b/plugins/rsyncd/index.py @@ -130,8 +130,8 @@ def initDreplace(): public.execShell('rm -rf /usr/lib/systemd/system/rsyncd*') rlog = getLog() - public.writeFile(rlog, '') - + if os.path.exists(rlog): + public.writeFile(rlog, '') return file_bin