aboutsummaryrefslogtreecommitdiffstats
path: root/config/filemgr
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-19 11:57:37 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-19 11:57:37 +0200
commite2720d9b6b7c4010a3c42edcbc5fe1367a8a6a0e (patch)
tree033ea2a03c894650496c7a7456c9c02e89bb38c1 /config/filemgr
parentd250115a332f9470f34bb52ef6700b9f3656f197 (diff)
downloadpfsense-packages-e2720d9b6b7c4010a3c42edcbc5fe1367a8a6a0e.tar.gz
pfsense-packages-e2720d9b6b7c4010a3c42edcbc5fe1367a8a6a0e.tar.bz2
pfsense-packages-e2720d9b6b7c4010a3c42edcbc5fe1367a8a6a0e.zip
filemgr - fixes round two
Make it clean up after itself on uninstall.
Diffstat (limited to 'config/filemgr')
-rw-r--r--config/filemgr/filemgr.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/filemgr/filemgr.xml b/config/filemgr/filemgr.xml
index fdcf46d0..72ca53d4 100644
--- a/config/filemgr/filemgr.xml
+++ b/config/filemgr/filemgr.xml
@@ -184,4 +184,11 @@
<prefix>/usr/local/www/packages/filemgr/rbfminc/</prefix>
<item>https://packages.pfsense.org/packages/config/filemgr/rbfminc/session.php</item>
</additional_files_needed>
+ <custom_php_deinstall_command>
+ <![CDATA[
+ if (is_dir("/usr/local/www/packages/filemgr")) {
+ mwexec("/bin/rm -rf /usr/local/www/packages/filemgr/");
+ }
+ ]]>
+ </custom_php_deinstall_command>
</packagegui>