aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-devel/pkg
diff options
context:
space:
mode:
authorPiBa-NL <pba_2k3@yahoo.com>2015-05-25 14:57:36 +0200
committerPiBa-NL <pba_2k3@yahoo.com>2015-05-25 14:57:36 +0200
commit73979c69ecf2680ab9fa76a56f9a26302593b793 (patch)
treea5d65bf2c22fe0924ccc4ee3f234bc182c6918fd /config/haproxy-devel/pkg
parent4ce40c722b7271f431d24a41651cf1d834706367 (diff)
downloadpfsense-packages-73979c69ecf2680ab9fa76a56f9a26302593b793.tar.gz
pfsense-packages-73979c69ecf2680ab9fa76a56f9a26302593b793.tar.bz2
pfsense-packages-73979c69ecf2680ab9fa76a56f9a26302593b793.zip
haproxy-devel, replace exec(chmod..) by native php
Diffstat (limited to 'config/haproxy-devel/pkg')
-rw-r--r--config/haproxy-devel/pkg/haproxy.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/haproxy-devel/pkg/haproxy.inc b/config/haproxy-devel/pkg/haproxy.inc
index f59fc59b..6e07625f 100644
--- a/config/haproxy-devel/pkg/haproxy.inc
+++ b/config/haproxy-devel/pkg/haproxy.inc
@@ -433,7 +433,7 @@ EOD;
$fd = fopen("/usr/local/etc/rc.d/haproxy.sh", "w");
fwrite($fd, $haproxy);
fclose($fd);
- exec("chmod a+rx /usr/local/etc/rc.d/haproxy.sh");
+ chmod("/usr/local/etc/rc.d/haproxy.sh", 0755);
$haproxy_ocsp = <<<EOD
#!/usr/local/bin/php -f
@@ -458,7 +458,7 @@ EOD;
$fd = fopen("/etc/rc.haproxy_ocsp.sh", "w");
fwrite($fd, $haproxy_ocsp);
fclose($fd);
- exec("chmod a+rx /etc/rc.haproxy_ocsp.sh");
+ chmod("/etc/rc.haproxy_ocsp.sh", 0755);
$static_output .= "HAProxy, update configuration\n";
update_output_window($static_output);