Changed exit code for non-root execution to 3, unique
This commit is contained in:
parent
4b45a7a4d3
commit
70c5dc222c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user