summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoalogwatch.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/doalogwatch.in b/doalogwatch.in
index 1f543a9..ab29607 100755
--- a/doalogwatch.in
+++ b/doalogwatch.in
@@ -20,7 +20,9 @@ warteAufFile="#WAITDIR#/logwatch"
grep -q "^$(cat "${warteAufFile}") \(\S*/\)\?doalogwatch\$" && \
exit 0
-echo $$ > "${warteAufFile}"
+if [ -d "${warteAufFile%/*}" ]; then
+ echo $$ > "${warteAufFile}"
+fi
[ -r #ETCDIR#/backup.conf ] && \
. #ETCDIR#/backup.conf