Skip to content

Commit

Permalink
Update taginfo script (#325)
Browse files Browse the repository at this point in the history
* Move db files for taginfo

* Update taginfo script
  • Loading branch information
Rub21 authored May 1, 2024
1 parent f4ba562 commit 2a19af9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions images/taginfo/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -x
WORKDIR=/usr/src/app
DATADIR=/usr/src/app/data
DATADOWNLOAD=/osm/planet/var
Expand Down Expand Up @@ -39,14 +40,14 @@ process_data() {
db/update.sh $DATADIR
master/update.sh $DATADIR
projects/update.sh $DATADIR
# # languages/update.sh $DATADIR
# # wiki/update.sh $DATADIR
# # wikidata/update.sh $DATADIR
cp $DATADIR/selection.db $DATADIR/../
# languages/update.sh $DATADIR
# wiki/update.sh $DATADIR
# wikidata/update.sh $DATADIR
chronology/update.sh $DATADIR
./update_all.sh $DATADIR
mv $DATADIR/*.db $DATADIR/
mv $DATADIR/*/*.db $DATADIR/

# if BUCKET_NAME is set upload data
if ! aws s3 ls "s3://$BUCKET_NAME/$ENVIRONMENT" 2>&1 | grep -q 'An error occurred'; then
aws s3 sync $DATADIR/ s3://$AWS_S3_BUCKET/$ENVIRONMENT/ --exclude "*" --include "*.db"
Expand Down

0 comments on commit 2a19af9

Please sign in to comment.