fix permissions command structure error

This commit is contained in:
Asif Bacchus 2019-07-25 13:06:49 -06:00
parent 8fb80564dd
commit e273f3274c
1 changed files with 1 additions and 1 deletions

View File

@ -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