summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-14 21:48:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-14 21:48:44 +0000
commit98a8e83181a03eb55e4d408af724748ab740ba65 (patch)
tree1b0747085a0f2b006f4f93f03fbfe5759abbdb88 /usr
parent3af86226c27ccb299b463a951277c9250e51ad14 (diff)
downloadpfsense-98a8e83181a03eb55e4d408af724748ab740ba65.zip
pfsense-98a8e83181a03eb55e4d408af724748ab740ba65.tar.gz
Unbreak the package manager.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 91a38ec..6ca0fd6 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -224,6 +224,8 @@ if(!$pkg_config['packages'])
<?php
+
+
if($_GET['mode'] == "reinstallall") {
/*
* Loop through installed packages and if name matches
@@ -260,7 +262,7 @@ foreach ($packages_to_install as $id) {
/*
* install the package
- */
+ */
// Ensure directories are in place for pkg_add.
mwexec("mkdir /usr/local/www/ext/Services >/dev/null 2>&1");
@@ -299,7 +301,6 @@ foreach ($packages_to_install as $id) {
mwexec("/usr/bin/killall -HUP syslogd");
}
$a_out = &$config['packages']['package']; // save item to installedpkgs
-
fwrite($fd_log, "Begining (" . $id. ") " . $pkgent['name'] . " package installation.\n" . $status);
log_error("Begining (" . $id. ") " . $pkgent['name'] . " package installation.");
@@ -321,6 +322,7 @@ foreach ($packages_to_install as $id) {
$pb_percent += 10;
mwexec("cd /usr/local/pkg/ && fetch " . $pkg_config['packages']['package'][$id]['config_file']);
if(!file_exists("/usr/local/pkg/" . $pkgent['name'] . ".xml")) {
+ fwrite($fd_log, "ERROR! Could not fetch " . $pkg_config['packages']['package'][$id]['config_file']);
update_output_window("ERROR! Could not fetch " . $pkg_config['packages']['package'][$id]['config_file'] . "\n");
exit;
}
OpenPOWER on IntegriCloud