summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-19 17:15:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-19 17:15:19 +0000
commit866d2813b9a8babdd376286e41a2719f114742e0 (patch)
treee3503d230651e4faec0e4afcfcb1c11ff032574e /usr/local/www
parent06e2abdbc07c727fd55d213008ecfe0a604ed6af (diff)
downloadpfsense-866d2813b9a8babdd376286e41a2719f114742e0.zip
pfsense-866d2813b9a8babdd376286e41a2719f114742e0.tar.gz
Inform the user during all actions and make sure they are logged.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 63743b0..9fb9bf4 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -329,7 +329,7 @@ foreach ($packages_to_install as $id) {
}
update_status("Downloading and installing " . $pkgent['name'] . " - " . $pkgent['pfsense_package'] . " and its dependencies ... This could take a moment ...");
- fwrite($fd_log, "Downloading and installing " . $pkgent['name'] . " ... \n");
+ fwrite($fd_log, "Downloading and installing " . $pkgent['name'] . " - " . $pkgent['pfsense_package'] . " ... \n");
update_progress_bar($pb_percent);
$pb_percent += 10;
@@ -388,8 +388,11 @@ foreach ($packages_to_install as $id) {
update_progress_bar($pb_percent);
$pb_percent += 10;
- if(!$_GET['mode'] == "reinstallall")
+ if(!$_GET['mode'] == "reinstallall") {
+ update_output_window("Saving updated package information ...");
+ fwrite($fd_log, "Saving updated package information ...");
write_config();
+ }
update_progress_bar($pb_percent);
$pb_percent += 10;
@@ -471,13 +474,17 @@ foreach ($packages_to_install as $id) {
// return dependency list to output later.
$command = "TODELETE=`ls /var/db/pkg | grep " . $name . "` && /usr/sbin/pkg_info -r \$TODELETE | grep Dependency: | cut -d\" \" -f2";
$dependencies = exec_command_and_return_text($command);
- fwrite($fd_log, "Installed " . $name . " and the following dependencies:\n" . $dependencies);
+ if($dependencies == "")
+ fwrite($fd_log, "Installed package " . $name);
+ else
+ fwrite($fd_log, "Installed package " . $name . " and the following dependencies:\n" . $dependencies);
update_progress_bar($pb_percent);
$pb_percent += 10;
if($package_conf['custom_php_install_command']) {
- update_status("Executing post install commands...");
+ fwrite($fd_log, "Executing post install commands...\n " . $package_conf['custom_php_install_command']);
+ update_status("Executing post install commands...\n " . $package_conf['custom_php_install_command']);
$pb_percent += 50;
update_progress_bar(50);
eval($package_conf['custom_php_install_command']);
OpenPOWER on IntegriCloud