Changed exit code to 3 (unique) if exit due to not run as root

This commit is contained in:
Asif Bacchus 2018-10-23 05:05:08 -06:00
parent f938c8ef20
commit 6eaad32096

View File

@ -348,7 +348,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
## Check NextCloud webroot ## Check NextCloud webroot