run as root
This commit is contained in:
parent
2adcac027b
commit
784cda10eb
@ -5,6 +5,12 @@ LOCKFILE=/run/btrbk/btrbk.lock
|
||||
LOGFILE=$(mktemp)
|
||||
trap 'rm -f -- "${LOGFILE}"' EXIT
|
||||
|
||||
# check for superpowers
|
||||
if [[ "${EUID}" -ne 0 ]] ; then
|
||||
echo "Please run me as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "---" | tee -a "${LOGFILE}"
|
||||
echo "Start btrbk-cron: $(date||true)" | tee -a "${LOGFILE}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user