From cc9d2f862ca3a44a80a7a98691b31637f8b9b10c Mon Sep 17 00:00:00 2001 From: "Danilo G. Baio (dbaio)" Date: Thu, 9 Apr 2015 09:12:42 -0300 Subject: apcupsd - use quotes for array key names --- config/apcupsd/apcupsd.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config') 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) { -- cgit v1.2.3