aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-13 22:17:58 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-13 22:17:58 -0400
commit9e2e58d7cc55ead368ac3b1c5bcb7b891e75b8dc (patch)
treed6aa228b7df60650c07f75776a5c1670baf8acb6 /config/haproxy
parent006067ae2a00bae656620d84685ab18282beada3 (diff)
downloadpfsense-packages-9e2e58d7cc55ead368ac3b1c5bcb7b891e75b8dc.tar.gz
pfsense-packages-9e2e58d7cc55ead368ac3b1c5bcb7b891e75b8dc.tar.bz2
pfsense-packages-9e2e58d7cc55ead368ac3b1c5bcb7b891e75b8dc.zip
Install binary whenever insall is called
Diffstat (limited to 'config/haproxy')
-rw-r--r--config/haproxy/haproxy.xml8
1 files changed, 3 insertions, 5 deletions
diff --git a/config/haproxy/haproxy.xml b/config/haproxy/haproxy.xml
index 5bb3af0a..ff2b0ab5 100644
--- a/config/haproxy/haproxy.xml
+++ b/config/haproxy/haproxy.xml
@@ -96,11 +96,9 @@
<custom_php_resync_config_command>
</custom_php_resync_config_command>
<custom_php_install_command>
- if(!file_exists("/usr/local/bin/haproxy")) {
- $freebsdv=`uname -r | cut -d'.' -f1`;
- download_file_with_progress_bar("http://www.pfsense.org/packages/config/haproxy/binaries{$freebsdv}/haproxy", "/usr/local/bin/haproxy");
- exec("chmod a+rx /usr/local/bin/haproxy");
- }
+ $freebsdv=`uname -r | cut -d'.' -f1`;
+ download_file_with_progress_bar("http://www.pfsense.org/packages/config/haproxy/binaries{$freebsdv}/haproxy", "/usr/local/sbin/haproxy");
+ exec("chmod a+rx /usr/local/sbin/haproxy");
</custom_php_install_command>
<custom_php_deinstall_command>
</custom_php_deinstall_command>