summaryrefslogtreecommitdiff
path: root/doalogwatch.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-21 22:18:15 +0200
committerErich Eckner <git@eckner.net>2016-05-21 22:18:15 +0200
commit4b766b3fbb32321d2fea77bf387c6eb6a389e30d (patch)
tree988ca319cd4ba8ae72931978021308beb2bd7886 /doalogwatch.in
parent1e10cfb4e9b44b67e792245831525e9a2c172df2 (diff)
downloadlogwatch-extra-4b766b3fbb32321d2fea77bf387c6eb6a389e30d.tar.xz
letzteMeldung nicht mehr bei "make install" erzeugen
Diffstat (limited to 'doalogwatch.in')
-rwxr-xr-xdoalogwatch.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/doalogwatch.in b/doalogwatch.in
index ad1d931..b9366b0 100755
--- a/doalogwatch.in
+++ b/doalogwatch.in
@@ -5,6 +5,11 @@
abWannNaechstesMal="$(date +%F)"
lmDatei="#CACHEDIR#/logwatch/letzteMeldung"
+if ! [ -r "${lmDatei}" ]
+then
+ echo '1970-01-01' > "${lmDatei}"
+fi
+
[ "${abWannNaechstesMal}" == "$(cat "${lmDatei}")" ] && exit 0
warteAufFile="#WAITDIR#/logwatch"