fix incorrect permission assignment on tmp dir
This commit is contained in:
parent
f12aa53e54
commit
8fb80564dd
@ -390,7 +390,7 @@ if ! exportDir=$( mktemp -d 2>>"$logFile" ); then
|
|||||||
exitError 111 "Could not create temporary directory for exported EML files"
|
exitError 111 "Could not create temporary directory for exported EML files"
|
||||||
fi
|
fi
|
||||||
# grant pilerUser permission to write to temporary directory
|
# grant pilerUser permission to write to temporary directory
|
||||||
if ! chown root:${pilerUser} "$exportDir" && chmod 660 "$exportDir"; then
|
if ! chown root:${pilerUser} "$exportDir" && chmod 770 "$exportDir"; then
|
||||||
exitError 112 "Could not set permissions on temporary directory"
|
exitError 112 "Could not set permissions on temporary directory"
|
||||||
fi
|
fi
|
||||||
if ! cd "$exportDir"; then
|
if ! cd "$exportDir"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user