From 8b8003424198c88705fc0144e24f8a9593ea010d Mon Sep 17 00:00:00 2001 From: smoochy Date: Fri, 23 Jan 2026 16:44:07 +0100 Subject: [PATCH] Makes sure only hostname or HOSTNAME is being used. Not both, if they should exist. --- notify_templates/notify_v2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify_templates/notify_v2.sh b/notify_templates/notify_v2.sh index 4bcb0d2..2faa429 100644 --- a/notify_templates/notify_v2.sh +++ b/notify_templates/notify_v2.sh @@ -40,7 +40,7 @@ done enabled_notify_templates=( "${!unique_templates[@]}" ) -FromHost=$(cat /etc/[hH][oO][sS][tT][nN][aA][mM][eE] 2>/dev/null) +FromHost=$(cat /etc/[hH][oO][sS][tT][nN][aA][mM][eE] 2>/dev/null | head -n 1) CurrentEpochTime=$(date +"%Y-%m-%dT%H:%M:%S") CurrentEpochSeconds=$(date +%s)