aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-13 22:31:08 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-13 22:31:08 -0400
commit975db9ee14ae24d889e2430d8c1a9ce174260a9f (patch)
treef7327d06cabee5dca236e63f4b1fe7fc9c034323
parentbe7bb13fd1ec371fe01d5c84792981e5a96971f1 (diff)
downloadpfsense-packages-975db9ee14ae24d889e2430d8c1a9ce174260a9f.tar.gz
pfsense-packages-975db9ee14ae24d889e2430d8c1a9ce174260a9f.tar.bz2
pfsense-packages-975db9ee14ae24d889e2430d8c1a9ce174260a9f.zip
Trim string and use fetch
-rw-r--r--config/haproxy/haproxy.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/haproxy/haproxy.xml b/config/haproxy/haproxy.xml
index 44206347..f9174868 100644
--- a/config/haproxy/haproxy.xml
+++ b/config/haproxy/haproxy.xml
@@ -96,8 +96,8 @@
<custom_php_resync_config_command>
</custom_php_resync_config_command>
<custom_php_install_command>
- $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");
+ $freebsdv=trim(`uname -r | cut -d'.' -f1`);
+ `fetch -q -o /usr/local/sbin/ http://www.pfsense.org/packages/config/haproxy/binaries{$freebsdv}/haproxy`;
exec("chmod a+rx /usr/local/sbin/haproxy");
haproxy_custom_php_install_command();
</custom_php_install_command>