From c0c01ff7c651b489c8f9cad44cc45cbaf3df3a6e Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 10 Jun 2009 09:26:17 -0400 Subject: Dashboard update: Use apc_clear_cache() after install to make sure that the proper index.php appears. --- config/dashboard/dashboard.inc | 3 ++- config/dashboard/dashboard.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/dashboard/dashboard.inc b/config/dashboard/dashboard.inc index 732eb977..09472500 100644 --- a/config/dashboard/dashboard.inc +++ b/config/dashboard/dashboard.inc @@ -7,11 +7,12 @@ function dashboard_install() { /* Copy files for backup. For some odd reason, mv alone does * not always result in the proper file being used. */ mwexec("cp /usr/local/www/index.php /usr/local/www/index.php.before_dashboard"); - mwexec("rm /usr/local/www/index.php"); 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 xzvpUf /usr/local/pkg/widgets.tgz -C /"); assign_privs(); + /* Clear the APC cache so that the updates to installed files will work. */ + apc_clear_cache(); } function assign_privs() { diff --git a/config/dashboard/dashboard.xml b/config/dashboard/dashboard.xml index 165c097e..75dc5981 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.8.3 + 0.8.3_1 Dashboard /usr/local/pkg/dashboard.inc -- cgit v1.2.3