mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-09 20:32:38 +01:00
set exit code to 2 if running as non-root
This commit is contained in:
parent
7c4c5e64c3
commit
90bcd2a1a7
@ -554,7 +554,7 @@ fi
|
||||
|
||||
if [ "$UID" != "0" ]; then
|
||||
echo "`basename $0` can only be run as root"
|
||||
exit 1
|
||||
exit 2
|
||||
fi
|
||||
|
||||
## Process each configuration file
|
||||
|
Loading…
Reference in New Issue
Block a user