1
0
Fork 0

maintenance.sh:Append to logfile

This commit is contained in:
Félix Piédallu 2024-09-13 20:37:00 +02:00 committed by Félix Piédallu
parent 541bfbbdde
commit 31d8a40301

View file

@ -83,7 +83,7 @@ update_app_levels() {
safe_run() {
logfile="$SCRIPT_DIR/$1.log"
error_msg_var="${1}_error_msg"
if ! "$@" &> "$logfile"; then
if ! "$@" &>> "$logfile"; then
sendxmpppy "${!error_msg_var}"
fi
}