diff options
author | jim-p <jimp@pfsense.org> | 2017-03-16 14:04:28 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-03-16 14:05:15 -0400 |
commit | 32e75b43f2911e888fe7b6beaf56b3540660ab4a (patch) | |
tree | 7fd775a6635ec46510aaac5b58c3eb63f777d0e4 | |
parent | 9433cda2198673f84ffb2c748e0095679b7756f4 (diff) | |
download | pfsense-32e75b43f2911e888fe7b6beaf56b3540660ab4a.zip pfsense-32e75b43f2911e888fe7b6beaf56b3540660ab4a.tar.gz |
Run custom deinstall commands during the deinstall phase instead of post-deinstall, otherwise they will never get run. Fixes #7401
-rw-r--r-- | src/etc/inc/pkg-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc index cda5517..068f1ba 100644 --- a/src/etc/inc/pkg-utils.inc +++ b/src/etc/inc/pkg-utils.inc @@ -979,7 +979,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']); |