From 6bf4002760f2e92c3ffb2fdbff0566d7cf2ad1e7 Mon Sep 17 00:00:00 2001 From: "D. V. Serg" Date: Mon, 6 Aug 2007 07:56:37 +0000 Subject: Fix remove package bug --- packages/lightsquid/lightsquid.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/lightsquid') 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); -- cgit v1.2.3