From fea94a62d34f3c847584f7963445341c5ae4ae62 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 22 Aug 2017 20:51:17 +0100 Subject: [PATCH] corrected vars --- lgsm/functions/alert_mailgun.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/alert_mailgun.sh b/lgsm/functions/alert_mailgun.sh index 2d01b1523..a359bd05a 100644 --- a/lgsm/functions/alert_mailgun.sh +++ b/lgsm/functions/alert_mailgun.sh @@ -10,7 +10,7 @@ local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" fn_print_dots "Sending Email (Mailgun) alert" sleep 0.5 -mailgunsend=$(curl -s --user "api:${mailguntoken}" -F from="LinuxGSM <${mailgundomain}>" -F to="${servicename} Admin <${mailgunemail}>" -F subject="${alertemoji} ${alertsubject} ${alertemoji}" --form-string html="

Message
${alertbody}

Game
${gamename}

Server name
${servername}

Hostname
${HOSTNAME}

Server IP
${ip}:${port}

More info
${alerturl}" https://api.mailgun.net/v3/sandbox10b3f208bfe541aca8a0c97f33a6c3fe.mailgun.org/messages) +mailgunsend=$(curl -s --user "api:${mailguntoken}" -F from="LinuxGSM <${mailgunemailfrom}>" -F to="${servicename} Admin <${mailgunemail}>" -F subject="${alertemoji} ${alertsubject} ${alertemoji}" --form-string html="

Message
${alertbody}

Game
${gamename}

Server name
${servername}

Hostname
${HOSTNAME}

Server IP
${ip}:${port}

More info
${alerturl}" https://api.mailgun.net/v3/${mailgundomain}/messages) if [ -z "${mailgunsend}" ]; then fn_print_fail_nl "Sending Email (Mailgun) alert"