aboutsummaryrefslogtreecommitdiffstats
path: root/config/dashboard/dashboard.inc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-06-10 09:26:17 -0400
committerjim-p <jim@pingle.org>2009-06-10 09:27:16 -0400
commitc0c01ff7c651b489c8f9cad44cc45cbaf3df3a6e (patch)
treedf862fdf2c3c15ade92662ec5ccb32f436568c4a /config/dashboard/dashboard.inc
parenta24a6994a246ee3d869a17540a916288032dbfc6 (diff)
downloadpfsense-packages-c0c01ff7c651b489c8f9cad44cc45cbaf3df3a6e.tar.gz
pfsense-packages-c0c01ff7c651b489c8f9cad44cc45cbaf3df3a6e.tar.bz2
pfsense-packages-c0c01ff7c651b489c8f9cad44cc45cbaf3df3a6e.zip
Dashboard update: Use apc_clear_cache() after install to make sure that the proper index.php appears.
Diffstat (limited to 'config/dashboard/dashboard.inc')
-rw-r--r--config/dashboard/dashboard.inc3
1 files changed, 2 insertions, 1 deletions
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() {