We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ef067c commit 111d1f4Copy full SHA for 111d1f4
images/taginfo/start.sh
@@ -46,8 +46,8 @@ process_data() {
46
# wikidata/update.sh $DATADIR
47
chronology/update.sh $DATADIR
48
./update_all.sh $DATADIR
49
- mv $DATADIR/*.db $DATADIR/
50
- mv $DATADIR/*/*.db $DATADIR/
+ # Move database files from subdirectories to main data directory
+ find $DATADIR -mindepth 2 -name "*.db" -type f -exec mv {} $DATADIR/ \;
51
# if AWS_S3_BUCKET is set upload data
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"
0 commit comments