diff options
author | Danilo G. Baio (dbaio) <dbaio@bsd.com.br> | 2015-04-09 09:12:42 -0300 |
---|---|---|
committer | Danilo G. Baio (dbaio) <dbaio@bsd.com.br> | 2015-04-09 09:12:42 -0300 |
commit | cc9d2f862ca3a44a80a7a98691b31637f8b9b10c (patch) | |
tree | 36961f3ca2408c1bdbbee53b73a5d826d37949aa /config | |
parent | eabceb73d27cc84ee0035b8016b83d099717c7a2 (diff) | |
download | pfsense-packages-cc9d2f862ca3a44a80a7a98691b31637f8b9b10c.tar.gz pfsense-packages-cc9d2f862ca3a44a80a7a98691b31637f8b9b10c.tar.bz2 pfsense-packages-cc9d2f862ca3a44a80a7a98691b31637f8b9b10c.zip |
apcupsd - use quotes for array key names
Diffstat (limited to 'config')
-rw-r--r-- | config/apcupsd/apcupsd.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/apcupsd/apcupsd.inc b/config/apcupsd/apcupsd.inc index 86e026a6..7255ceb1 100644 --- a/config/apcupsd/apcupsd.inc +++ b/config/apcupsd/apcupsd.inc @@ -232,11 +232,11 @@ function apccontrol_scripts_install($emailnotification){ define('APCUPSD_BASE', '/usr/local'); } - $apcstatus[commfailure] = "\$HOSTNAME - Communications with UPS \$1 lost"; - $apcstatus[commok] = "\$HOSTNAME - Communications with UPS \$1 restored"; - $apcstatus[onbattery] = "\$HOSTNAME - Power failure. Running on UPS \$1 batteries"; - $apcstatus[offbattery] = "\$HOSTNAME - UPS \$1 Power has returned..."; - $apcstatus[changeme] = "\$HOSTNAME - Emergency! UPS batteries have failed. Change them NOW"; + $apcstatus['commfailure'] = "\$HOSTNAME - Communications with UPS \$1 lost"; + $apcstatus['commok'] = "\$HOSTNAME - Communications with UPS \$1 restored"; + $apcstatus['onbattery'] = "\$HOSTNAME - Power failure. Running on UPS \$1 batteries"; + $apcstatus['offbattery'] = "\$HOSTNAME - UPS \$1 Power has returned..."; + $apcstatus['changeme'] = "\$HOSTNAME - Emergency! UPS batteries have failed. Change them NOW"; $apccontrol_scripts = array("offbattery","onbattery","commfailure","commok","changeme"); foreach($apccontrol_scripts as $apccontrol_script) { |