diff options
author | doktornotor <notordoktor@gmail.com> | 2015-10-18 14:56:51 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-10-18 14:56:51 +0200 |
commit | a2533b4573b9836223184fbd6051cd72e0ee49d1 (patch) | |
tree | 24f113948513d6c5a47f0a3016bee6482c8d13ab /config/lightsquid | |
parent | 11c7e2d8d87b15145a2975976efcd8c698fb34f6 (diff) | |
download | pfsense-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.inc | 4 |
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/"); + } } /* |