Skip to content

Instantly share code, notes, and snippets.

@T0biii
Created February 19, 2022 20:14
Show Gist options
  • Save T0biii/4e26c375aa307002b1be5ccd36a2fc95 to your computer and use it in GitHub Desktop.
Save T0biii/4e26c375aa307002b1be5ccd36a2fc95 to your computer and use it in GitHub Desktop.
Mailcow pre and post Hook
#cd /opt/
#git clone https://github.com/ChaoticWeg/discord.sh
#create ".webhook" in /opt/discord.sh/ with webhook URL for more infos see: https://github.com/ChaoticWeg/discord.sh
#post_update_hook.sh
IP=$(hostname --ip-address)
/opt/discord.sh/discord.sh --text "@here :ocean: **Mailcow update completed.** :ocean: :keyboard: **DNS/IP:** $IP"
#cd /opt/
#git clone https://github.com/ChaoticWeg/discord.sh
#create ".webhook" in /opt/discord.sh/ with webhook URL for more infos see: https://github.com/ChaoticWeg/discord.sh
#pre_update_hook.sh
IP=$(hostname --ip-address)
/opt/discord.sh/discord.sh --text "@here :fire: **Update for mailcow started.** :fire: :keyboard: **DNS/IP:** $IP"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment