Fix mailx setup for latest restic image that is based on latest alpine

- mailx is known as mail in alpine
This commit is contained in:
Tobias Kaupat
2023-08-05 23:54:01 +02:00
parent 1d222b9798
commit a018fdc2ec
3 changed files with 3 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ if [ -n "${TEAMS_WEBHOOK_URL}" ]; then
fi
if [ -n "${MAILX_ARGS}" ]; then
sh -c "mailx -v -S sendwait ${MAILX_ARGS} < ${lastLogfile} > ${lastMailLogfile} 2>&1"
sh -c "mail -v -S sendwait ${MAILX_ARGS} < ${lastLogfile} > ${lastMailLogfile} 2>&1"
if [ $? == 0 ]; then
echo "Mail notification successfully sent."
else