Skip to content

Commit

Permalink
Move db files for taginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Apr 30, 2024
1 parent ec665eb commit 37cb8dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions images/taginfo/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ compress_files() {
download_db_files() {
if ! aws s3 ls "s3://$AWS_S3_BUCKET/$ENVIRONMENT" 2>&1 | grep -q 'An error occurred'; then
aws s3 sync "s3://$AWS_S3_BUCKET/$ENVIRONMENT/" "$DATADIR/"
mv $DATADIR/*.db $DATADIR/
mv $DATADIR/*/*.db $DATADIR/
compress_files
fi
}
Expand Down

0 comments on commit 37cb8dc

Please sign in to comment.