diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-18 02:42:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-18 02:42:24 +0000 |
commit | 1063d44ac0ca46082c804236ecca5db803f4ace7 (patch) | |
tree | 1fdea316482ebad51a205111571ae2dad148f9cd /usr/local/www/pkg_mgr_install.php | |
parent | 3cb72f63dc10d884d9a01302f362cfd163a753fa (diff) | |
download | pfsense-1063d44ac0ca46082c804236ecca5db803f4ace7.zip pfsense-1063d44ac0ca46082c804236ecca5db803f4ace7.tar.gz |
*CORRECTLY* detect if a package is installed, if is not, add it to the config.xml file
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 58524c0..76407df 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -170,10 +170,6 @@ foreach ($packages_to_install as $id) { $pkg_config = parse_xml_config_pkg("{$g['tmp_path']}/pkg_config.xml", "pfsensepkgs"); /* - * Make sure that this package isn't already installed. - */ - - /* * install the package */ @@ -333,7 +329,11 @@ foreach ($packages_to_install as $id) { fwrite($fd_log, "Saving updated package information ...\n"); write_config("Installed package {$pkgent['name']}"); // remount rw after write_config() since it will mount ro. - conf_mount_rw(); + /* + * Make sure that this package isn't already installed. + */ + if(!is_package_installed($pkgent['name'])) + conf_mount_rw(); $static_output .= "done.\n"; update_output_window($static_output); } |