Merge pull request #5313 from kristinalim/fix/mirror_db_script_bucket

Fix script for syncing public/ in AWS bucket to local
This commit is contained in:
Kristina Lim
2020-04-28 20:28:05 +08:00
committed by GitHub

View File

@@ -54,7 +54,7 @@ $RAILS_RUN script/prepare_imported_db.rb
if [ -n "$BUCKET" ]; then
if hash aws 2>/dev/null; then
echo "Mirroring images..."
aws s3 sync "s3://$BUCKET/public public/"
aws s3 sync "s3://$BUCKET/public" public/
else
echo "Please install the AWS CLI tools so that I can copy the images from $BUCKET for you."
echo "eg. sudo easy_install awscli"