From 9c8c250318f1e2e97cbb3d0d320a4882d3f44040 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 25 Jul 2019 12:42:02 -0600 Subject: [PATCH] change 'cd exportDir' error code --- pilerbackup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pilerbackup.sh b/pilerbackup.sh index 170f9a5..906d59a 100644 --- a/pilerbackup.sh +++ b/pilerbackup.sh @@ -392,7 +392,7 @@ if ! exportDir=$( mktemp -d 2>>"$logFile" ); then exitError 111 "Could not create temporary directory for exported EML files" fi if ! cd "$exportDir"; then - exitError 112 "Unable to change to temporary export directory" + exitError 113 "Unable to change to temporary export directory" fi printf "${cyan}[%s] -- [INFO] EML files will be temporarily stored in:" \ "$(stamp)" >> "$logFile" @@ -637,7 +637,8 @@ exit 0 # 3: borg not installed # 99: TERM signal trapped # 111: could not create tmp dir for EML dump from piler-export -# 112: could not change to tmp dir to start export operation +# 112: could not set permissions on tmp dir +# 113: could not change to tmp dir to start export operation # 115: problem during piler-export operation # 130: null configuration variable in details file # 131: invalid configuration variable in details file