aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfiles/drupal7
1 files changed, 6 insertions, 1 deletions
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