From ede47351cae2cca0bf270078952c91c299a7a877 Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 9 Aug 2023 18:46:26 +0200 Subject: [PATCH] mint-config-update.sh aktualisiert --- mint-config-update.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mint-config-update.sh b/mint-config-update.sh index 535d7f0..4949930 100644 --- a/mint-config-update.sh +++ b/mint-config-update.sh @@ -5,6 +5,12 @@ then # lockfile for systemd-service trap "rm -f /run/mint-config-update.sh.lock" EXIT echo $$ >/run/mint-config-update.sh.lock + if find /var/log/mint-config-update.sh.log -mmin +60 -ls | grep -q /var/log/mint-config-update.sh.log + then + echo "$0 was running already in the last 60 minutes" + rm -f /run/mint-config-update.sh.lock + sleep 60 + fi fi # download and run