diff --git a/lgsm/functions/alert_gotify.sh b/lgsm/functions/alert_gotify.sh new file mode 100755 index 000000000..7fe8f1eed --- /dev/null +++ b/lgsm/functions/alert_gotify.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# LinuxGSM alert_gotify.sh module +# Contributors: http://linuxgsm.com/contrib +# Website: https://linuxgsm.com +# Description: Sends Gotify alert. + +functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" + +if ! command -v jq > /dev/null; then + fn_print_fail_nl "Sending Gotify alert: jq is missing." + fn_script_log_fatal "Sending Gotify alert: jq is missing." +fi + +json=$(cat <