diff options
author | D. V. Serg <dvserg@pfsense.org> | 2007-08-06 07:56:37 +0000 |
---|---|---|
committer | D. V. Serg <dvserg@pfsense.org> | 2007-08-06 07:56:37 +0000 |
commit | 6bf4002760f2e92c3ffb2fdbff0566d7cf2ad1e7 (patch) | |
tree | 438b2d35270f370fd2e577b4ee091c13934858d9 /packages/lightsquid | |
parent | 625b2495fe449e2eed98e9a84990967cf75d82ea (diff) | |
download | pfsense-packages-6bf4002760f2e92c3ffb2fdbff0566d7cf2ad1e7.tar.gz pfsense-packages-6bf4002760f2e92c3ffb2fdbff0566d7cf2ad1e7.tar.bz2 pfsense-packages-6bf4002760f2e92c3ffb2fdbff0566d7cf2ad1e7.zip |
Fix remove package bug
Diffstat (limited to 'packages/lightsquid')
-rw-r--r-- | packages/lightsquid/lightsquid.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/lightsquid/lightsquid.inc b/packages/lightsquid/lightsquid.inc index 153fdb00..929faa32 100644 --- a/packages/lightsquid/lightsquid.inc +++ b/packages/lightsquid/lightsquid.inc @@ -34,6 +34,8 @@ require_once('pkg-utils.inc'); require_once('filter.inc'); require_once('service-utils.inc'); +define ('CMD_PKGDELETE', 'pkg_delete lightsquid-1.7.1_1'); + // enable GUI debug define('LS_GUI_DEBUG', 'on'); define('LS_LOG_FILE', '/tmp/lightsquid_gui.log'); @@ -111,7 +113,7 @@ function lightsquid_deinstall() { ls_setup_cron("lightsquid_squid_rotate", "", "", false); ls_setup_cron("lightsquid_parser", "", "", false); // control shoot to head :) - mwexec("pkg_delete lightsquid-1.7.1"); + mwexec(CMD_PKGDELETE); // remove '/usr/local/www/lightsquid' dir - any time can't be removed by templates if (file_exists(LS_WWWPATH)) mwexec("rm -rf " . LS_WWWPATH); |