Skip to content

Instantly share code, notes, and snippets.

Last active September 29, 2022 05:41
What would you like to do?
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.
set -o nounset
set -o errexit
cd /opt/mailcow-dockerized && ./ --check > /dev/null
[ $exit_code -eq 0 ] && echo -e "Subject:MAILCOW: Update available \n\n Update your mailcow instance please!\n" | sendmail root
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment