aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-10-19 18:20:48 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-10-19 18:20:48 -0200
commit5a601159579aadbbdba607ef61030debe8f65c6c (patch)
tree2223aeca4373ddca5aa70fc6bb164daa68c47c8b
parent65dd18b021680fcf40713f83efd28f0afccfd3eb (diff)
downloadpuppet-drupal-5a601159579aadbbdba607ef61030debe8f65c6c.tar.gz
puppet-drupal-5a601159579aadbbdba607ef61030debe8f65c6c.tar.bz2
Always fix permissions at drupal_install
-rw-r--r--files/drupal6.make1
-rw-r--r--templates/drupal.sh.erb18
2 files changed, 10 insertions, 9 deletions
diff --git a/files/drupal6.make b/files/drupal6.make
index 11e0769..0b8ed42 100644
--- a/files/drupal6.make
+++ b/files/drupal6.make
@@ -151,6 +151,7 @@ projects[] = l10n_update
; themes
projects[] = framework
+projects[] = zen
; tinymce
libraries[tinymce][download][type] = "file"
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb
index aefc9f3..7963dcf 100644
--- a/templates/drupal.sh.erb
+++ b/templates/drupal.sh.erb
@@ -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."
}