diff options
author | jim-p <jim@pingle.org> | 2009-06-10 10:04:40 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-06-10 10:05:12 -0400 |
commit | 33082e20945d3b499f8949ac9dbd8087566eb722 (patch) | |
tree | c93b5432cb3e70d16eb3c1e729512c3bb90c580f /config | |
parent | f33282a2a06292e8c42fd8a684d147f70450a71c (diff) | |
download | pfsense-packages-33082e20945d3b499f8949ac9dbd8087566eb722.tar.gz pfsense-packages-33082e20945d3b499f8949ac9dbd8087566eb722.tar.bz2 pfsense-packages-33082e20945d3b499f8949ac9dbd8087566eb722.zip |
Unlink the old dashboard index.php for good measure before replacing it.
Diffstat (limited to 'config')
-rw-r--r-- | config/dashboard/dashboard.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/dashboard/dashboard.inc b/config/dashboard/dashboard.inc index d06fee20..9f5d6e8c 100644 --- a/config/dashboard/dashboard.inc +++ b/config/dashboard/dashboard.inc @@ -7,6 +7,7 @@ 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"); + unlink("/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 /"); |