From e273f3274cf813f68b28bb0d76aea5761759a57a Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 25 Jul 2019 13:06:49 -0600 Subject: [PATCH] fix permissions command structure error --- pilerbackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilerbackup.sh b/pilerbackup.sh index feb76e7..d3d4e67 100644 --- a/pilerbackup.sh +++ b/pilerbackup.sh @@ -390,7 +390,7 @@ if ! exportDir=$( mktemp -d 2>>"$logFile" ); then exitError 111 "Could not create temporary directory for exported EML files" fi # grant pilerUser permission to write to temporary directory -if ! chown root:${pilerUser} "$exportDir" && chmod 770 "$exportDir"; then +if ! (chown root:${pilerUser} "$exportDir" && chmod 770 "$exportDir"); then exitError 112 "Could not set permissions on temporary directory" fi if ! cd "$exportDir"; then