diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-01-02 10:31:57 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-01-02 10:31:57 -0200 |
commit | ee620df1b27af94d92a26cf498df02a36225b113 (patch) | |
tree | 0a4d71b922d25e9a98fc17b57226512ce5635b26 | |
parent | 6e94d6104239cb8ad1f64cee7079d086d59acc2d (diff) | |
download | puppet-drupal-ee620df1b27af94d92a26cf498df02a36225b113.tar.gz puppet-drupal-ee620df1b27af94d92a26cf498df02a36225b113.tar.bz2 |
Only cron action is available for drupal 6
-rwxr-xr-x | files/drupal | 7 |
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 |