Supress more AWS stuff
This commit is contained in:
parent
231c704bd6
commit
8860638c87
@ -54,7 +54,7 @@ for file in "$MODULESDIR"/*; do
|
||||
done
|
||||
# If we have a fancy schmancy bucket, use it
|
||||
s3bucket="{{ aws_backup_bucket }}"
|
||||
if command -v aws > /dev/null 2>&1 && aws s3 ls "s3://$s3bucket"; then
|
||||
if command -v aws > /dev/null 2>&1 && aws s3 ls "s3://$s3bucket" > /dev/null 2>&1; then
|
||||
log "Moving files to S3 bucket $s3bucket"
|
||||
aws s3 mv "$BACKUPSDIR" "s3://$s3bucket" \
|
||||
--recursive \
|
||||
|
Loading…
Reference in New Issue
Block a user