From 6eaad32096ddff1c15b09158f20283676600ebdb Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 23 Oct 2018 05:05:08 -0600 Subject: [PATCH] Changed exit code to 3 (unique) if exit due to not run as root --- root/NCscripts/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/NCscripts/backup.sh b/root/NCscripts/backup.sh index 11011ee..832f2aa 100755 --- a/root/NCscripts/backup.sh +++ b/root/NCscripts/backup.sh @@ -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