summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-09 07:24:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-09 07:24:40 +0000
commitd44a1a62db1a6bdf83129971cd3e865e49cf56b6 (patch)
tree9f3624dff005e4af4c0af0b3583d73fec4190c50
parent7502342ae033ee3cede214d0fd07398c95c6531d (diff)
downloadpfsense-d44a1a62db1a6bdf83129971cd3e865e49cf56b6.zip
pfsense-d44a1a62db1a6bdf83129971cd3e865e49cf56b6.tar.gz
When a package does not install correctly, clear the output windows and alert the user that something has gone wrong. Also clear the progress bar.
-rwxr-xr-xusr/local/www/pkg_mgr_install.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index d8940a8..d1dfd6a 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -310,7 +310,11 @@ if($status <> "") {
fwrite($fd_log, "Package WAS NOT installed properly.\n");
fclose($fd_log);
$filecontents = exec_command_and_return_text("cat " . $file);
+ update_progress_bar(100);
+ echo "\n<script language=\"JavaScript\">document.progressbar.style.visibility='hidden';</script>";
+ echo "\n<script language=\"JavaScript\">document.progholder.style.visibility='hidden';</script>";
update_status("Package WAS NOT installed properly...Something went wrong..\n" . $filecontents);
+ update_output_window("Error during package installation.");
sleep(1);
die;
}
OpenPOWER on IntegriCloud