mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
When uninstalling a service actually stop it first.
This commit is contained in:
parent
b5058001d4
commit
7eea44079f
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user