Commit 5937b3f9 by John Eskew

Merge pull request #3078 from edx/jeskew/fix_gocd_backups_again

Add parens to fix backup script.
parents 48830f4b fb8a7bd4
......@@ -60,7 +60,7 @@ tar zcvf "$gocd_backup_location" -C "$(dirname "$backup_path")" "${backup_dir_na
dated_backup_filename="${gocd_backup_base}-${backup_dir_name}.tgz"
# Transfer tarball to S3 with datetime'd filename.
aws_output=$(/usr/local/bin/aws s3 cp "${gocd_backup_location}" "s3://${s3_backup_bucket}/${dated_backup_filename}" 2>&1) || echo $aws_output && exit
aws_output=$(/usr/local/bin/aws s3 cp "${gocd_backup_location}" "s3://${s3_backup_bucket}/${dated_backup_filename}" 2>&1) || (echo $aws_output && exit)
case $aws_output in
*failed*)
echo "Backup transfer failed: $aws_output"
......@@ -72,7 +72,7 @@ case $aws_output in
esac
# Transfer tarball to S3 with official backup filename.
aws_output=$(/usr/local/bin/aws s3 cp "${gocd_backup_location}" "s3://${s3_backup_bucket}" 2>&1) || echo $aws_output && exit
aws_output=$(/usr/local/bin/aws s3 cp "${gocd_backup_location}" "s3://${s3_backup_bucket}" 2>&1) || (echo $aws_output && exit)
case $aws_output in
*failed*)
echo "Backup transfer failed: $aws_output"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment