aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dashboard/dashboard.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dashboard/dashboard.inc')
-rw-r--r--packages/dashboard/dashboard.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/dashboard/dashboard.inc b/packages/dashboard/dashboard.inc
index 0561d455..f2a53453 100644
--- a/packages/dashboard/dashboard.inc
+++ b/packages/dashboard/dashboard.inc
@@ -5,6 +5,8 @@ function dashboard_install() {
if(!file_exists("/usr/local/www/index.php.before_dashboard")) {
/* backup the pre-dashboard index.php file */
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("tar xzvpf /usr/local/pkg/widgets.tgz -C /usr/local/www/");
}
@@ -12,8 +14,9 @@ function dashboard_install() {
function dashboard_deinstall() {
global $g, $config;
if(file_exists("/usr/local/www/index.php.before_dashboard")) {
- /* restore the file prior to the dashboard package installation */
+ /* 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");
}
}