|
|
|
@ -12,7 +12,7 @@ sitename="" # Title of site "Example Sit |
|
|
|
|
slackchannel="" # Slack Channel #example |
|
|
|
|
slackuri="" # URI for Slack WebHook "https://hooks.slack.com/services/xxxxx" |
|
|
|
|
discorduri="" # URI for Discord WebHook "https://discordapp.com/api/webhooks/xxxxx" |
|
|
|
|
|
|
|
|
|
msteams_webhook_uri="" # URI for Microsoft Teams WebHook "https://outlook.office.com/webhook/xxxxx" |
|
|
|
|
|
|
|
|
|
########################################### |
|
|
|
|
## Check if we have a public IP |
|
|
|
@ -128,5 +128,11 @@ case "$update" in |
|
|
|
|
"content" : "'"$sitename"' Updated: '$record_name''"'"'s'""' new IP Address is '$CURRENT_IP'" |
|
|
|
|
}' $discorduri |
|
|
|
|
fi |
|
|
|
|
if [[ $msteams_webhook_uri != "" ]]; then |
|
|
|
|
curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST \ |
|
|
|
|
--data-raw '{ |
|
|
|
|
"text" : "'"$sitename"' Updated: '$record_name''"'"'s'""' new IP Address is '$ip'" |
|
|
|
|
}' $msteams_webhook_uri |
|
|
|
|
fi |
|
|
|
|
exit 0;; |
|
|
|
|
esac |
|
|
|
|