aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-05-31 03:29:56 +0000
committerScott Dale <sdale@pfsense.org>2007-05-31 03:29:56 +0000
commitb379ef9d00e62d0f80ac47211c16b27e08f4b8e2 (patch)
treeddaa8f6f8f687a4382320b1e286c01a8a7cb1333
parent43639b5f18928912e3b9a83abc4d40f7e945e2e2 (diff)
downloadpfsense-packages-b379ef9d00e62d0f80ac47211c16b27e08f4b8e2.tar.gz
pfsense-packages-b379ef9d00e62d0f80ac47211c16b27e08f4b8e2.tar.bz2
pfsense-packages-b379ef9d00e62d0f80ac47211c16b27e08f4b8e2.zip
copy fbegin over
-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");
}
}