]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Setup site folders with .onion sites in the end of the list at drupal script
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 26 Jun 2012 16:04:34 +0000 (13:04 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 26 Jun 2012 16:04:34 +0000 (13:04 -0300)
templates/drupal.sh.erb

index f98528926ad85fb9455785294e30f4af00ea0436..826b0e0bfa455f97f31c3c07d1c5af74e84bcdc8 100644 (file)
@@ -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