Skip to content

Commit e3ff53e

Browse files
committed
Upload in a directory taginfo files
1 parent d6f06ed commit e3ff53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

images/taginfo/start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ process_data() {
4949
mv $DATADIR/*.db $DATADIR/
5050
mv $DATADIR/*/*.db $DATADIR/
5151
# if AWS_S3_BUCKET is set upload data
52-
if ! aws s3 ls "s3://$AWS_S3_BUCKET/$ENVIRONMENT" 2>&1 | grep -q 'An error occurred'; then
53-
aws s3 sync $DATADIR/ s3://$AWS_S3_BUCKET/$ENVIRONMENT/ --exclude "*" --include "*.db"
52+
if ! aws s3 ls "s3://$AWS_S3_BUCKET/taginfo/$ENVIRONMENT" 2>&1 | grep -q 'An error occurred'; then
53+
aws s3 sync $DATADIR/ s3://$AWS_S3_BUCKET/taginfo/$ENVIRONMENT/ --exclude "*" --include "*.db"
5454
fi
5555
}
5656

0 commit comments

Comments
 (0)