diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-29 23:25:28 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-29 23:25:28 -0200 |
commit | f36cb3d7feb171813d003a9dcd1d322704d0a109 (patch) | |
tree | 037f95a5c18370d5231dcffda458dd8af68a0ace /files | |
parent | 05cf4d282373671adcc6beb91c668d35f5cedd41 (diff) | |
download | puppet-drupal-f36cb3d7feb171813d003a9dcd1d322704d0a109.tar.gz puppet-drupal-f36cb3d7feb171813d003a9dcd1d322704d0a109.tar.bz2 |
Silent autoupgrades
Diffstat (limited to 'files')
-rwxr-xr-x | files/drupal | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/files/drupal b/files/drupal index 644b776..d51fd10 100755 --- a/files/drupal +++ b/files/drupal @@ -38,7 +38,9 @@ function drupal_get_major { # Check for existing installations function drupal_check_existing { if [ -e "$BASE/drupal-$1" ]; then - echo "Folder $BASE/drupal-$1 already exists, skipping" + if [ "$SILENT" != "yes" ]; then + echo "Folder $BASE/drupal-$1 already exists, skipping" + fi exit fi } @@ -46,7 +48,9 @@ function drupal_check_existing { # Check for non existing installations function drupal_check_not_existing { if [ ! -e "$BASE/drupal-$1" ]; then - echo "Folder $BASE/drupal-$1 does not exist, skipping" + if [ "$SILENT" != "yes" ]; then + echo "Folder $BASE/drupal-$1 does not exist, skipping" + fi exit 1 fi } |