From f39abc2a96539161c2f079725d3977e3e027b2e9 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 18 Jul 2023 13:57:09 +0200 Subject: [PATCH] mint-config-update.sh aktualisiert --- mint-config-update.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mint-config-update.sh b/mint-config-update.sh index c485b66..9afbba6 100644 --- a/mint-config-update.sh +++ b/mint-config-update.sh @@ -1,8 +1,13 @@ #!/bin/bash -wget -q https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint.sh -O /tmp/mint.sh +# lockfile for systemd-service +trap "rm -f /run/mint-config-update.sh.lock" EXIT +echo $$ >/run/mint-config-update.sh.lock + +# download and run +wget -q https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint.sh -O /tmp/mint.sh || exit 0 cd /tmp -bash -e mint.sh +bash -n mint.sh && bash -e mint.sh rm mint.sh echo "Skript beendet"