set exit code to 2 if running as non-root

This commit is contained in:
Jerome Charaoui 2021-01-10 09:47:23 -05:00
parent 7c4c5e64c3
commit 90bcd2a1a7

View File

@ -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