From ceaa0cc548063cf8e5964667a3fefef474fab3bc Mon Sep 17 00:00:00 2001 From: "Danilo G. Baio (dbaio)" Date: Thu, 9 Apr 2015 09:19:46 -0300 Subject: apcupsd - replace system exec `hostname` for php function gethostname() --- config/apcupsd/apcupsd.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/apcupsd') 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=<<