[DRE-commits] r4226 - trunk/redmine/debian

Jérémy Lal kapouer-guest at alioth.debian.org
Thu Oct 8 11:33:31 UTC 2009


Author: kapouer-guest
Date: 2009-10-08 11:33:26 +0000 (Thu, 08 Oct 2009)
New Revision: 4226

Modified:
   trunk/redmine/debian/postinst
Log:
Lessens permissions on runtime dirs and sensitive data.

Modified: trunk/redmine/debian/postinst
===================================================================
--- trunk/redmine/debian/postinst	2009-10-05 13:39:46 UTC (rev 4225)
+++ trunk/redmine/debian/postinst	2009-10-08 11:33:26 UTC (rev 4226)
@@ -165,6 +165,9 @@
 			mkdir -p $fRailsVar
 			mkdir -p $fRailsVar/files
 			mkdir -p $fRailsCache
+			chmod 750 $fRailsLog
+			chmod 750 $fRailsVar
+			chmod 750 $fRailsCache
 			chown -f www-data:www-data $fRailsLog
 			chown -f www-data:www-data $fRailsVar
 			chown -f www-data:www-data $fRailsVar/files
@@ -179,6 +182,7 @@
 				rake -s db:migrate RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" VERBOSE=$RAKE_VERBOSE || true
 				rake -s redmine:load_default_data RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" REDMINE_LANG=$DEFAULT_LANGUAGE || true
 				# because rake task is executed as root here, and this file is used later by web server, make sure owner is www-data
+				touch ${fRailsLog}/production.log
 				chown -f www-data:www-data ${fRailsLog}/production.log
 			else
 				echo "Redmine instance \"${lInstance}\" database must be configured manually."




More information about the Pkg-ruby-extras-commits mailing list