Skip to content

Commit

Permalink
Move taginfo db files to data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Apr 30, 2024
1 parent c9f71b6 commit f4ba562
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 f4ba562

Please sign in to comment.