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
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ done
## If not running as root, display error on console and exit
if [ $(id -u) -ne 0 ]; then
echo -e "\n${err}This script MUST be run as ROOT. Exiting.${normal}"
exit 2
exit 3
fi
## Check NextCloud webroot