mirror of
https://github.com/PDB-REDO/libcifpp.git
synced 2026-06-04 13:54:25 +08:00
Fix cron script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user