From bc586f76d5aeeccdb1e5e0864675818eda6f89e2 Mon Sep 17 00:00:00 2001 From: Jim Pingle Date: Sun, 1 Mar 2009 15:59:39 -0500 Subject: Update Dashboard package. Fixes broken log viewing on 1.2.1+, and fixes broken IPSec status. Adds a couple features to logging. --- config/dashboard/dashboard.inc | 11 +++++++++-- config/dashboard/dashboard.xml | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'config/dashboard') diff --git a/config/dashboard/dashboard.inc b/config/dashboard/dashboard.inc index b147632e..a97954ae 100644 --- a/config/dashboard/dashboard.inc +++ b/config/dashboard/dashboard.inc @@ -4,10 +4,11 @@ function dashboard_install() { global $g, $config; assign_privs(); if(!file_exists("/usr/local/www/index.php.before_dashboard")) { - /* backup the pre-dashboard index.php file */ + /* backup the pre-dashboard files */ mwexec("cp /usr/local/www/index.php /usr/local/www/index.php.before_dashboard"); - /* backup the pre-dashboard fbegin.inc file */ mwexec("cp /usr/local/www/fbegin.inc /usr/local/www/fbegin.inc.before_dashboard"); + mwexec("cp /usr/local/www/diag_logs_filter.php /usr/local/www/diag_logs_filter.php.before_dashboard"); + mwexec("cp /usr/local/www/diag_logs_filter_dynamic.php /usr/local/www/diag_logs_filter_dynamic.php.before_dashboard"); } mwexec("tar xzvpf /usr/local/pkg/widgets.tgz -C /"); assign_privs(); @@ -20,6 +21,8 @@ function dashboard_deinstall() { /* restore the files prior to the dashboard package installation */ mwexec("cp /usr/local/www/index.php.before_dashboard /usr/local/www/index.php"); mwexec("cp /usr/local/www/fbegin.inc.before_dashboard /usr/local/www/fbegin.inc"); + mwexec("cp /usr/local/www/diag_logs_filter.php.before_dashboard /usr/local/www/diag_logs_filter.php"); + mwexec("cp /usr/local/www/diag_logs_filter_dynamic.php.before_dashboard /usr/local/www/diag_logs_filter_dynamic.php"); } assign_privs(); } @@ -29,10 +32,14 @@ function assign_privs() { mwexec("chown root:wheel /usr/local/www/fbegin.php"); mwexec("chown root:wheel /usr/local/www/graph_cpu.php"); mwexec("chown root:wheel /usr/local/www/stats.php"); + mwexec("chown root:wheel /usr/local/www/diag_logs_filter.php"); + mwexec("chown root:wheel /usr/local/www/diag_logs_filter_dynamic.php"); mwexec("chmod a+rw /usr/local/www/index.php"); mwexec("chmod a+rw /usr/local/www/fbegin.php"); mwexec("chmod a+rw /usr/local/www/graph_cpu.php"); mwexec("chmod a+rw /usr/local/www/stats.php"); + mwexec("chmod a+rw /usr/local/www/diag_logs_filter.php"); + mwexec("chmod a+rw /usr/local/www/diag_logs_filter_dynamic.php"); } ?> \ No newline at end of file diff --git a/config/dashboard/dashboard.xml b/config/dashboard/dashboard.xml index a0e1b35a..ab96e727 100644 --- a/config/dashboard/dashboard.xml +++ b/config/dashboard/dashboard.xml @@ -46,7 +46,7 @@ Describe your package requirements here Currently there are no FAQ items provided. dashboard - 0.2 + 0.7.0 Dashboard /usr/local/pkg/dashboard.inc -- cgit v1.2.3 From 3b34b3d8e6df4affb65dd3b1cf18b3667b268788 Mon Sep 17 00:00:00 2001 From: Jim Pingle Date: Sun, 1 Mar 2009 20:03:32 -0500 Subject: Fix a small formatting bug in log output. --- config/dashboard/dashboard.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/dashboard') diff --git a/config/dashboard/dashboard.xml b/config/dashboard/dashboard.xml index ab96e727..26e41cef 100644 --- a/config/dashboard/dashboard.xml +++ b/config/dashboard/dashboard.xml @@ -46,7 +46,7 @@ Describe your package requirements here Currently there are no FAQ items provided. dashboard - 0.7.0 + 0.7.1 Dashboard /usr/local/pkg/dashboard.inc -- cgit v1.2.3