aboutsummaryrefslogtreecommitdiffstats
path: root/config/lightsquid
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-18 14:56:51 +0200
committerdoktornotor <notordoktor@gmail.com>2015-10-18 14:56:51 +0200
commita2533b4573b9836223184fbd6051cd72e0ee49d1 (patch)
tree24f113948513d6c5a47f0a3016bee6482c8d13ab /config/lightsquid
parent11c7e2d8d87b15145a2975976efcd8c698fb34f6 (diff)
downloadpfsense-packages-a2533b4573b9836223184fbd6051cd72e0ee49d1.tar.gz
pfsense-packages-a2533b4573b9836223184fbd6051cd72e0ee49d1.tar.bz2
pfsense-packages-a2533b4573b9836223184fbd6051cd72e0ee49d1.zip
Symlink themes dir to sqstat directory and clean up on uninstall
Diffstat (limited to 'config/lightsquid')
-rw-r--r--config/lightsquid/lightsquid.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/lightsquid/lightsquid.inc b/config/lightsquid/lightsquid.inc
index 892d5d60..6bc4df4b 100644
--- a/config/lightsquid/lightsquid.inc
+++ b/config/lightsquid/lightsquid.inc
@@ -137,6 +137,7 @@ function lightsquid_install() {
}
symlink('/usr/local/share/lightsquid/tpl/' . $tpl, LS_TEMPLATEPATH . '/' . $tpl);
}
+ symlink("/usr/local/www/themes", "/usr/local/www/sqstat/themes");
}
function lightsquid_deinstall() {
@@ -144,6 +145,9 @@ function lightsquid_deinstall() {
lightsquid_setup_cron(false);
// undo PBI hacks
lightsquid_unfix_perl();
+ if (is_dir("/usr/local/www/sqstat/")) {
+ mwexec("/bin/rm -rf /usr/local/www/sqstat/");
+ }
}
/*