mint-config-update.sh aktualisiert
This commit is contained in:
parent
e36bfc90f0
commit
19be869f7d
@ -5,13 +5,13 @@ then
|
|||||||
# lockfile for systemd-service
|
# lockfile for systemd-service
|
||||||
trap "rm -f /run/mint-config-update.sh.lock" EXIT
|
trap "rm -f /run/mint-config-update.sh.lock" EXIT
|
||||||
echo $$ >/run/mint-config-update.sh.lock
|
echo $$ >/run/mint-config-update.sh.lock
|
||||||
if find /var/log/mint-config-update.sh.log -mmin -60 | grep -q /var/log/mint-config-update.sh.log
|
#if find /var/log/mint-config-update.sh.log -mmin -60 | grep -q /var/log/mint-config-update.sh.log
|
||||||
then
|
#then
|
||||||
echo "$0 was running already in the last 60 minutes"
|
# echo "$0 was running already in the last 60 minutes"
|
||||||
rm -f /run/mint-config-update.sh.lock
|
# rm -f /run/mint-config-update.sh.lock
|
||||||
sleep 60
|
# sleep 60
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
#fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# download and run
|
# download and run
|
||||||
|
Loading…
Reference in New Issue
Block a user