summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-18 02:43:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-18 02:43:49 +0000
commitfb97298b2859e07ba9fcfb2a081041731f5477b2 (patch)
tree052db8cdffba257ffdc3247962859fe1ff9a9634 /usr
parent1063d44ac0ca46082c804236ecca5db803f4ace7 (diff)
downloadpfsense-fb97298b2859e07ba9fcfb2a081041731f5477b2.zip
pfsense-fb97298b2859e07ba9fcfb2a081041731f5477b2.tar.gz
*CORRECTLY* detect if a package is installed, if is not, add it to the config.xml file
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 76407df..1f1c957 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -327,13 +327,13 @@ foreach ($packages_to_install as $id) {
$static_output .= "Saving updated package information... ";
update_output_window($static_output);
fwrite($fd_log, "Saving updated package information ...\n");
- write_config("Installed package {$pkgent['name']}");
- // remount rw after write_config() since it will mount ro.
/*
* Make sure that this package isn't already installed.
*/
- if(!is_package_installed($pkgent['name']))
- conf_mount_rw();
+ if(!is_package_installed($pkgent['name']))
+ write_config("Installed package {$pkgent['name']}");
+ /* remount rw after write_config() since it will mount ro. */
+ conf_mount_rw();
$static_output .= "done.\n";
update_output_window($static_output);
}
OpenPOWER on IntegriCloud