Skip to content

Commit

Permalink
edit mail-script
Browse files Browse the repository at this point in the history
  • Loading branch information
MrUnknownDE committed Jun 28, 2024
1 parent 1ab0ae8 commit 6c5bdcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sh_scripts/mail_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ else
error_message=$(tail -n 20 backup.log)
send_telegram_message "Fehlgeschlagen!%0AServer: mail.johanneskr.de%0ATime: $timestamp%0AApplication: Mailcow-Backup%0AError: $error_message"
echo "Fehler beim Mailcow Backup. Logs wurden gesendet."
exit 1
exit 0
fi

# Rclone-Befehl zum Kopieren des Verzeichnisses
Expand All @@ -68,6 +68,7 @@ else
echo "Backup-Prozess auf mail.johanneskr.de fehlgeschlagen."
# Telegram-Benachrichtigung senden
send_telegram_message "Fehlgeschlagen!%0AServer: mail.johanneskr.de%0ATime: $timestamp%0AApplication: S3-Mailcow-Backup-Upload"
exit 0
fi

echo "Backup-Prozess abgeschlossen."

0 comments on commit 6c5bdcb

Please sign in to comment.