Skip to content

Commit 111d1f4

Browse files
committed
Update taginfo scrpit
1 parent 4ef067c commit 111d1f4

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
@@ -46,8 +46,8 @@ process_data() {
4646
# wikidata/update.sh $DATADIR
4747
chronology/update.sh $DATADIR
4848
./update_all.sh $DATADIR
49-
mv $DATADIR/*.db $DATADIR/
50-
mv $DATADIR/*/*.db $DATADIR/
49+
# Move database files from subdirectories to main data directory
50+
find $DATADIR -mindepth 2 -name "*.db" -type f -exec mv {} $DATADIR/ \;
5151
# if AWS_S3_BUCKET is set upload data
5252
if ! aws s3 ls "s3://$AWS_S3_BUCKET/taginfo/$ENVIRONMENT" 2>&1 | grep -q 'An error occurred'; then
5353
aws s3 sync $DATADIR/ s3://$AWS_S3_BUCKET/taginfo/$ENVIRONMENT/ --exclude "*" --include "*.db"

0 commit comments

Comments
 (0)