aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-22 16:13:04 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-22 16:13:04 -0400
commit8ca79ca87460f67526d0d2388d68b371e680dcec (patch)
treed6221c8806ee830f14d6739f8dce747b07d8a86e /config/haproxy
parent588d84909df6e089211c081239a441ee4e1776fb (diff)
downloadpfsense-packages-8ca79ca87460f67526d0d2388d68b371e680dcec.tar.gz
pfsense-packages-8ca79ca87460f67526d0d2388d68b371e680dcec.tar.bz2
pfsense-packages-8ca79ca87460f67526d0d2388d68b371e680dcec.zip
open file for writing
Diffstat (limited to 'config/haproxy')
-rw-r--r--config/haproxy/haproxy.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index b42398a4..527546ff 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -86,7 +86,7 @@ run_rc_command "\$1"
EOD;
- $fd = fopen("/usr/local/etc/rc.d/haproxy.sh");
+ $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");