diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-08-20 00:16:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-08-20 00:16:06 +0000 |
commit | 54343914d2b05a9963e48b9baa62445c31c2d6fc (patch) | |
tree | 422430d0154276be0f483125a22f4a5004ae8832 /packages | |
parent | 253f38f2affc5e4ec841ec50e60c955232b3504b (diff) | |
download | pfsense-packages-54343914d2b05a9963e48b9baa62445c31c2d6fc.tar.gz pfsense-packages-54343914d2b05a9963e48b9baa62445c31c2d6fc.tar.bz2 pfsense-packages-54343914d2b05a9963e48b9baa62445c31c2d6fc.zip |
Make sure index.php is writable before deinstalling or reinstalling.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/dashboard/dashboard.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/dashboard/dashboard.inc b/packages/dashboard/dashboard.inc index a9dcf95a..f6752f14 100644 --- a/packages/dashboard/dashboard.inc +++ b/packages/dashboard/dashboard.inc @@ -2,6 +2,7 @@ function dashboard_install() { global $g, $config; + mwexec("chmod ug+rw /usr/local/www/index.php"); 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"); @@ -17,9 +18,9 @@ function dashboard_install() { function dashboard_deinstall() { global $g, $config; + mwexec("chmod ug+rw /usr/local/www/index.php"); if(file_exists("/usr/local/www/index.php.before_dashboard")) { /* restore the files prior to the dashboard package installation */ - mwexec("chmod ug+rw /usr/local/www/index.php"); 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"); } |