aboutsummaryrefslogtreecommitdiffstats
path: root/config/apcupsd
diff options
context:
space:
mode:
Diffstat (limited to 'config/apcupsd')
-rw-r--r--config/apcupsd/apcupsd.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/apcupsd/apcupsd.inc b/config/apcupsd/apcupsd.inc
index 7255ceb1..0a99982d 100644
--- a/config/apcupsd/apcupsd.inc
+++ b/config/apcupsd/apcupsd.inc
@@ -259,10 +259,12 @@ function apccontrol_scripts_install($emailnotification){
}
}
+ $pfSense_hostname = gethostname();
+
$apccontrol_script_file=<<<EOF
#!/bin/sh
-HOSTNAME=`hostname`
+HOSTNAME="{$pfSense_hostname}"
MSG="{$apcstatus["{$apccontrol_script}"]}"
#
(