diff options
Diffstat (limited to 'packages/dashboard')
-rw-r--r-- | packages/dashboard/dashboard.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/dashboard/dashboard.inc b/packages/dashboard/dashboard.inc index f2a53453..85af9936 100644 --- a/packages/dashboard/dashboard.inc +++ b/packages/dashboard/dashboard.inc @@ -7,6 +7,7 @@ function dashboard_install() { 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("chmod a-w /usr/local/www/index.php"); } mwexec("tar xzvpf /usr/local/pkg/widgets.tgz -C /usr/local/www/"); } @@ -15,6 +16,7 @@ function dashboard_deinstall() { global $g, $config; 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"); } |