From ee620df1b27af94d92a26cf498df02a36225b113 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 2 Jan 2017 10:31:57 -0200 Subject: Only cron action is available for drupal 6 --- files/drupal | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3