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