Fix cron script

This commit is contained in:
Maarten L. Hekkelman
2023-01-02 14:06:09 +01:00
parent 72fd03a6b2
commit 0a06a0a51d

View File

@@ -2,7 +2,10 @@
set -e
if [ "$EUID" -ne 0 ]
# Get the effective UID, but do so in a compatible way (we may be running dash)
euid=${EUID:-$(id -u)}
if [ "${euid}" -ne 0 ] ; then
then echo "Please run as root"
exit
fi