summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-08-19 14:32:46 -0400
committerjim-p <jimp@pfsense.org>2014-08-19 14:32:46 -0400
commitbfe9c9e7a3a103ff1b278e5af5f8a7c39051810d (patch)
treed705f7ea9bc73f2159267fcd5e1ed52dd1e60a74 /usr/local/www/pkg_mgr_install.php
parente0f10116ef8b4264a0804ee552f99f2bebd7edfe (diff)
downloadpfsense-bfe9c9e7a3a103ff1b278e5af5f8a7c39051810d.zip
pfsense-bfe9c9e7a3a103ff1b278e5af5f8a7c39051810d.tar.gz
Move the fetching of a package's config file and additional files to separate functions, and then have the "xml" package button perform these so that it is not only a redundant copy of the "pkg" reinstall button. This can help ensure a package files are in a known-good state before other actions are performed, in case the deinstall would fail or behave erratically due to other files being missing.
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rw-r--r--usr/local/www/pkg_mgr_install.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 2f5d04c..945aa2d 100644
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -226,6 +226,8 @@ if ($_GET) {
filter_configure();
break;
case 'reinstallxml':
+ pkg_fetch_config_file($pkgid);
+ pkg_fetch_additional_files($pkgid);
case 'reinstallpkg':
delete_package_xml($pkgid);
if (install_package($pkgid) < 0) {
OpenPOWER on IntegriCloud