aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-06-26 13:04:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-06-26 13:04:34 -0300
commit519decfb6a8d86c8070d17c4cf59784ab4fe598a (patch)
tree58d866aeb461f0f6aedaf473f8dc5ce8d5ab6ab9
parent2fd3225bc742d01703f4212285b11df9a5461e0d (diff)
downloadpuppet-drupal-519decfb6a8d86c8070d17c4cf59784ab4fe598a.tar.gz
puppet-drupal-519decfb6a8d86c8070d17c4cf59784ab4fe598a.tar.bz2
Setup site folders with .onion sites in the end of the list at drupal script
-rw-r--r--templates/drupal.sh.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb
index f985289..826b0e0 100644
--- a/templates/drupal.sh.erb
+++ b/templates/drupal.sh.erb
@@ -58,9 +58,10 @@ function drupal_iterate {
continue
fi
- # Setup site folders
+ # Setup site folders with .onion sites in the end of the list
cd $base/sites
- drupals="`ls -I default -I all -I example.sites.php`"
+ drupals="`ls -I default -I all -I example.sites.php -I '*.onion'`"
+ drupals="$drupals `ls -1 | grep '.onion$' | xargs`"
# Issue updates
for drupal in $drupals; do