move export user notifications
This commit is contained in:
parent
257667f12a
commit
f12aa53e54
@ -385,9 +385,7 @@ printf "${cyan}[%s] -- [INFO] ${yellow}%s${cyan} imported --${norm}\n" \
|
|||||||
|
|
||||||
|
|
||||||
## create tmp directory and change to it for export operations
|
## create tmp directory and change to it for export operations
|
||||||
printf "${cyan}[%s] -- [INFO] Exporting EML files from piler --${norm}\n" \
|
# create temporary directory to dump exported email from piler
|
||||||
"$(stamp)" >> "$logFile"
|
|
||||||
# create temporary directory to dump files before borg backup
|
|
||||||
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
|
||||||
@ -403,6 +401,8 @@ printf "${cyan}[%s] -- [INFO] EML files will be temporarily stored in:" \
|
|||||||
printf "\n${yellow}%s/${cyan} --${norm}\n" "$exportDir" >> "$logFile"
|
printf "\n${yellow}%s/${cyan} --${norm}\n" "$exportDir" >> "$logFile"
|
||||||
|
|
||||||
## export EML from piler
|
## export EML from piler
|
||||||
|
printf "${cyan}[%s] -- [INFO] Exporting EML files from piler --${norm}\n" \
|
||||||
|
"$(stamp)" >> "$logFile"
|
||||||
if [ "$exportAll" -eq 1 ]; then
|
if [ "$exportAll" -eq 1 ]; then
|
||||||
if ! pilerexport -A 2>>"$logFile"; then
|
if ! pilerexport -A 2>>"$logFile"; then
|
||||||
exitError 115 "There was a problem while exporting EML from piler"
|
exitError 115 "There was a problem while exporting EML from piler"
|
||||||
|
Loading…
Reference in New Issue
Block a user