summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 121995f..ec5e8bc 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -124,6 +124,12 @@ switch($_GET['mode']) {
$static_output .= "\nPackage deleted.";
update_output_window($static_output);
break;
+ case "showlog":
+ $id = htmlspecialchars($_GET['pkg']);
+ if(strpos($id, "."))
+ exit;
+ update_output_window(file_get_contents("/tmp/pkg_mgr_{$id}.log"));
+ break;
case "reinstallpkg":
$id = get_pkg_id(htmlspecialchars($_GET['pkg']));
$todel = substr(reverse_strrchr($config['installedpackages']['package'][$id]['depends_on_package'], "."), 0, -1);
OpenPOWER on IntegriCloud