Fix script for syncing public/ in AWS bucket to local

This commit is contained in:
Kristina Lim
2020-04-28 13:22:48 +08:00
parent efb83c2f95
commit 7c985f39ab

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"