Script to check, if there is an update for mailcow-dockerized. In this case, an email will be sent. It's intended to use in a cron jobs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|set -o nounset|
|set -o errexit|
|cd /opt/mailcow-dockerized && ./update.sh --check > /dev/null|
|[ $exit_code -eq 0 ] && echo -e "Subject:MAILCOW: Update available \n\n Update your mailcow instance please!\n" | sendmail root|