Changed exit code to 3 (unique) if exit due to not run as root
This commit is contained in:
parent
f938c8ef20
commit
6eaad32096
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user