]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Only cron action is available for drupal 6
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 2 Jan 2017 12:31:57 +0000 (10:31 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 2 Jan 2017 12:31:57 +0000 (10:31 -0200)
files/drupal

index 3ab203957e3de7a21c32ab1b0998d4dd793090f4..f166015ef877b676a21ab05b062be086fafcf7a3 100755 (executable)
@@ -5,7 +5,7 @@
 
 BASE=${BASE:="/var/www/data"}
 SITES=${SITES:="$BASE/drupal"}
-SERIES="7 8"
+SERIES="7 8"
 
 # Ensure we have a proper path, useful when called through cron
 export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
@@ -71,6 +71,11 @@ function drupal_iterate {
       continue
     fi
 
+    # Only cron action is available for drupal 6
+    if [ "$version" == "6" ] && [ "$command" != "cron" ]; then
+      continue
+    fi
+
     # Setup site folders with .onion sites in the end of the list
     # and ignoring site names without dots
     cd $base/sites