When uninstalling a service actually stop it first.

This commit is contained in:
Ermal 2011-05-17 22:23:54 +00:00
parent b5058001d4
commit 7eea44079f

View File

@ -42,6 +42,7 @@
require_once("globals.inc");
require_once("xmlrpc.inc");
require_once("service-utils.inc");
if(file_exists("/cf/conf/use_xmlreader"))
require_once("xmlreader.inc");
else
@ -324,6 +325,8 @@ function uninstall_package($pkg_name) {
}
}
stop_service($pkg_name);
$id = get_pkg_id($pkg_name);
if ($id >= 0) {
$pkg_depends =& $config['installedpackages']['package'][$id]['depends_on_package'];