From: Silvio Rhatto Date: Mon, 2 Jan 2017 12:31:57 +0000 (-0200) Subject: Only cron action is available for drupal 6 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ee620df1b27af94d92a26cf498df02a36225b113;p=puppet-drupal.git Only cron action is available for drupal 6 --- diff --git a/files/drupal b/files/drupal index 3ab2039..f166015 100755 --- a/files/drupal +++ b/files/drupal @@ -5,7 +5,7 @@ BASE=${BASE:="/var/www/data"} SITES=${SITES:="$BASE/drupal"} -SERIES="7 8" +SERIES="6 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