Changed exit code for non-root execution to 3, unique

This commit is contained in:
Asif Bacchus 2018-10-22 06:03:30 -06:00
parent 4b45a7a4d3
commit 70c5dc222c

View File

@ -394,7 +394,7 @@ done
## If not running as root, display error on console and exit ## If not running as root, display error on console and exit
if [ $(id -u) -ne 0 ]; then if [ $(id -u) -ne 0 ]; then
echo -e "\n${err}This script MUST be run as ROOT. Exiting.${normal}" echo -e "\n${err}This script MUST be run as ROOT. Exiting.${normal}"
exit 2 exit 3
fi fi
## Find mailcow configuration file so additional variables can be read ## Find mailcow configuration file so additional variables can be read