diff options
author | Scott Dale <sdale@pfsense.org> | 2007-05-31 03:29:56 +0000 |
---|---|---|
committer | Scott Dale <sdale@pfsense.org> | 2007-05-31 03:29:56 +0000 |
commit | b379ef9d00e62d0f80ac47211c16b27e08f4b8e2 (patch) | |
tree | ddaa8f6f8f687a4382320b1e286c01a8a7cb1333 /packages | |
parent | 43639b5f18928912e3b9a83abc4d40f7e945e2e2 (diff) | |
download | pfsense-packages-b379ef9d00e62d0f80ac47211c16b27e08f4b8e2.tar.gz pfsense-packages-b379ef9d00e62d0f80ac47211c16b27e08f4b8e2.tar.bz2 pfsense-packages-b379ef9d00e62d0f80ac47211c16b27e08f4b8e2.zip |
copy fbegin over
Diffstat (limited to 'packages')
-rw-r--r-- | packages/dashboard/dashboard.inc | 5 |
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"); } } |