From ac518968afc7e7a1e581b893ffe8ea0c410997be Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 3 Jun 2007 20:22:32 +0000 Subject: Make index.php not writable until package deinstallation. --- packages/dashboard/dashboard.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/dashboard') diff --git a/packages/dashboard/dashboard.inc b/packages/dashboard/dashboard.inc index 85af9936..7c8feb75 100644 --- a/packages/dashboard/dashboard.inc +++ b/packages/dashboard/dashboard.inc @@ -7,9 +7,9 @@ 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/"); + mwexec("chmod a-w /usr/local/www/index.php"); } function dashboard_deinstall() { -- cgit v1.2.3