aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Thompson <andrewt@catalyst.net.nz>2012-02-22 13:01:43 +1300
committerAndrew Thompson <andrewt@catalyst.net.nz>2012-02-22 13:01:43 +1300
commit6818b3408fa931455dbd7131b276d9873fb24e37 (patch)
treecc99f60bda5c10616a7fc2028c7a4c331576b84b
parent70e9cf3efa1c49359db9a8fb4c2935112d5045b3 (diff)
downloadpfsense-packages-6818b3408fa931455dbd7131b276d9873fb24e37.tar.gz
pfsense-packages-6818b3408fa931455dbd7131b276d9873fb24e37.tar.bz2
pfsense-packages-6818b3408fa931455dbd7131b276d9873fb24e37.zip
Workaround for the old package deleting the binary on unload instead of the package
-rw-r--r--config/haproxy/haproxy.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index 16c7af97..96b57190 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -156,6 +156,17 @@ EOD;
fclose($fd);
exec("/etc/rc.d/devd restart");
+ /* Workaround for the old package deleting the binary on unload instead of the package */
+ if (!file_exists("/usr/local/sbin/haproxy")) {
+ if (substr(trim(`uname -r`), 0, 1) == "8") {
+ exec("cd /var/db/pkg && pkg_delete `ls | grep haproxy`");
+ if (trim(`uname -m`) == 'i386')
+ exec("pkg_add -r http://e-sac.siteseguro.ws/pfsense/8/All/haproxy-1.4.18.tbz");
+ else
+ exec("pkg_add -r http://e-sac.siteseguro.ws/pfsense/8/amd64/All/haproxy-1.4.18.tbz");
+ }
+ }
+
/* Do XML upgrade from haproxy 0.31 to haproxy-dev */
if (is_array($config['installedpackages']['haproxy']['ha_servers'])) {
/* We have an old config */