Makes sure only hostname or HOSTNAME is being used. Not both, if they should exist.

This commit is contained in:
smoochy 2026-01-23 16:44:07 +01:00
parent 7abc8d2b89
commit 8b80034241

View file

@ -40,7 +40,7 @@ done
enabled_notify_templates=( "${!unique_templates[@]}" ) 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") CurrentEpochTime=$(date +"%Y-%m-%dT%H:%M:%S")
CurrentEpochSeconds=$(date +%s) CurrentEpochSeconds=$(date +%s)