aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-22 11:22:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-22 11:22:31 -0300
commita00912d6e1868c846b6104fbb88ee5fc401277d6 (patch)
tree4f30ebf5f375dfcbaa1a249b17111e65e7dada3f
parent12fa7e7d556071493ae705b11773e551b3ee8253 (diff)
downloadpuppet-drupal-a00912d6e1868c846b6104fbb88ee5fc401277d6.tar.gz
puppet-drupal-a00912d6e1868c846b6104fbb88ee5fc401277d6.tar.bz2
Install: create themes, modules and libraries
-rw-r--r--templates/drupal.sh.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb
index 35bfca4..665dea2 100644
--- a/templates/drupal.sh.erb
+++ b/templates/drupal.sh.erb
@@ -341,7 +341,7 @@ function drupal_install {
fi
echo "Creating $SITES/$site/drupal/ structure..."
- mkdir -p $SITES/$site/drupal/files
+ mkdir -p $SITES/$site/drupal/{files,themes,modules,libraries}
echo "Copying default configuration file..."
cp $BASE/drupal-$series/sites/default/default.settings.php $SITES/$site/drupal/settings.php
@@ -395,10 +395,10 @@ EOF
# Fix permissions
if grep -qe "^$site:" /etc/passwd; then
chown root.$site $SITES/$site/drupal/settings.php
- chown $site.$site $SITES/$site/drupal/files
+ chown $site.$site $SITES/$site/drupal/{files,themes,modules,libraries}
else
chown root.www-data $SITES/$site/drupal/settings.php
- chown www-data.www-data $SITES/$site/drupal/files
+ chown www-data.www-data $SITES/$site/drupal/{files,themes,modules,libraries}
fi
if [ "$series" == "6" ]; then