grant pilerUser permission to write to tmp dir
This commit is contained in:
parent
9c8c250318
commit
257667f12a
4
.vscode/numbered-bookmarks.json
vendored
4
.vscode/numbered-bookmarks.json
vendored
@ -6,13 +6,13 @@
|
|||||||
-1,
|
-1,
|
||||||
301,
|
301,
|
||||||
46,
|
46,
|
||||||
|
386,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
637
|
||||||
-1
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -391,6 +391,10 @@ printf "${cyan}[%s] -- [INFO] Exporting EML files from piler --${norm}\n" \
|
|||||||
if ! exportDir=$( mktemp -d 2>>"$logFile" ); then
|
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
|
||||||
|
if ! chown root:${pilerUser} "$exportDir" && chmod 660 "$exportDir"; then
|
||||||
|
exitError 112 "Could not set permissions on temporary directory"
|
||||||
|
fi
|
||||||
if ! cd "$exportDir"; then
|
if ! cd "$exportDir"; then
|
||||||
exitError 113 "Unable to change to temporary export directory"
|
exitError 113 "Unable to change to temporary export directory"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user