Commit 0a06a0a5 by Maarten L. Hekkelman

Fix cron script

parent 72fd03a6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment