]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Always fix permissions at drupal_install
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 19 Oct 2011 20:20:48 +0000 (18:20 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 19 Oct 2011 20:20:48 +0000 (18:20 -0200)
files/drupal6.make
templates/drupal.sh.erb

index 11e07698feb1895e69e0a9a27d9a892fc7fcc5ae..0b8ed42032473c4a984c9c681549eb5d29840fc6 100644 (file)
@@ -151,6 +151,7 @@ projects[] = l10n_update
 
 ; themes
 projects[] = framework
+projects[] = zen
 
 ; tinymce
 libraries[tinymce][download][type] = "file"
index aefc9f328f22c37137eee1ec3146048aa12f32f9..7963dcf582a8099b106af3dc193bd89310ce78c1 100644 (file)
@@ -270,15 +270,6 @@ function drupal_install {
     cp $BASE/drupal-$series/sites/default/default.settings.php $SITES/$site/drupal/settings.php
     chmod 640 $SITES/$site/drupal/settings.php
 
-    # Set files folder permission
-    if grep -qe "^$site:" /etc/passwd; then
-      chown root.$site  $SITES/$site/drupal/settings.php
-      chown $site.$site $SITES/$site/drupal/files
-    else
-      chown root.www-data     $SITES/$site/drupal/settings.php
-      chown www-data.www-data $SITES/$site/drupal/files
-    fi
-
     (
     echo "Creating symlinks..."
     cd $BASE/drupal-$series/sites
@@ -322,6 +313,15 @@ EOF
     --uri="$site" --sites-subdir="$site" --account-name="$admin" --account-mail="$admin_email"
   )
 
+  # Fix permissions
+  if grep -qe "^$site:" /etc/passwd; then
+    chown root.$site  $SITES/$site/drupal/settings.php
+    chown $site.$site $SITES/$site/drupal/files
+  else
+    chown root.www-data     $SITES/$site/drupal/settings.php
+    chown www-data.www-data $SITES/$site/drupal/files
+  fi
+
   echo "Done. Please check your installation."
 }