aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-13 22:21:02 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-13 22:21:02 -0400
commitbe7bb13fd1ec371fe01d5c84792981e5a96971f1 (patch)
tree739d1e1ff993786dc46bcb344e601a3474f6345c /config/haproxy
parent9e2e58d7cc55ead368ac3b1c5bcb7b891e75b8dc (diff)
downloadpfsense-packages-be7bb13fd1ec371fe01d5c84792981e5a96971f1.tar.gz
pfsense-packages-be7bb13fd1ec371fe01d5c84792981e5a96971f1.tar.bz2
pfsense-packages-be7bb13fd1ec371fe01d5c84792981e5a96971f1.zip
Add more install deinstall routines
Diffstat (limited to 'config/haproxy')
-rw-r--r--config/haproxy/haproxy.inc6
-rw-r--r--config/haproxy/haproxy.xml2
2 files changed, 8 insertions, 0 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index 88fa01e1..bb5886ff 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -33,6 +33,12 @@ require_once("notices.inc");
$d_haproxyconfdirty_path = $g['varrun_path'] . "/haproxy.conf.dirty";
+function haproxy_custom_php_deinstall_command() {
+ exec("rm /usr/local/sbin/haproxy");
+ exec("rm /usr/local/pkg/haproxy.inc");
+ exec("rm /usr/local/www/haproxy*");
+}
+
function haproxy_custom_php_install_command() {
global $g, $config;
conf_mount_rw();
diff --git a/config/haproxy/haproxy.xml b/config/haproxy/haproxy.xml
index ff2b0ab5..44206347 100644
--- a/config/haproxy/haproxy.xml
+++ b/config/haproxy/haproxy.xml
@@ -99,8 +99,10 @@
$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");
+ haproxy_custom_php_install_command();
</custom_php_install_command>
<custom_php_deinstall_command>
+ haproxy_custom_php_deinstall_command();
</custom_php_deinstall_command>
<custom_php_command_before_form>
</custom_php_command_before_form>