mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Run custom deinstall commands during the deinstall phase instead of post-deinstall, otherwise they will never get run. Fixes #7401
This commit is contained in:
parent
803ca43a02
commit
59fada5c1f
@ -938,7 +938,7 @@ function delete_package_xml($package_name, $when = "post-deinstall") {
|
||||
}
|
||||
}
|
||||
/* deinstall commands */
|
||||
if ($when == "post-deinstall" && $pkg_config['custom_php_deinstall_command'] <> "") {
|
||||
if ($when == "deinstall" && $pkg_config['custom_php_deinstall_command'] <> "") {
|
||||
update_status(gettext("Deinstall commands... "));
|
||||
if ($missing_include == false) {
|
||||
eval_once($pkg_config['custom_php_deinstall_command']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user