From 04bc481fc6aee6ccf2d5db33a2381dddaefe3c62 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Fri, 12 Apr 2024 20:56:27 -0500 Subject: [PATCH] Update comment - taginfo --- images/taginfo/start.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/images/taginfo/start.sh b/images/taginfo/start.sh index 791a06e5..7e29980c 100755 --- a/images/taginfo/start.sh +++ b/images/taginfo/start.sh @@ -5,10 +5,9 @@ DATADOWNLOAD=/osm/planet/var mkdir -p $DATADIR/ mkdir -p $DATADOWNLOAD/ -sed -i 's/"env -/"/g' $WORKDIR/taginfo/sources/util.sh - updates_source_code() { echo "Update...Procesor source code" + sed -i 's/"env -/"/g' $WORKDIR/taginfo/sources/util.sh # Function to replace the projects repo to get the projects information TAGINFO_PROJECT_REPO=${TAGINFO_PROJECT_REPO//\//\\/} sed -i -e 's/https:\/\/github.com\/taginfo\/taginfo-projects.git/'$TAGINFO_PROJECT_REPO'/g' $WORKDIR/taginfo/sources/projects/update.sh @@ -44,7 +43,7 @@ process_data() { chronology/update.sh $DATADIR mv $DATADIR/taginfo-*.db $DATADIR/ mv $DATADIR/*/taginfo-*.db $DATADIR/ - # if BUCKET_NAME is set upload data + # 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" fi @@ -52,7 +51,7 @@ process_data() { start_web() { echo "Start...Taginfo web service" - if BUCKET_NAME is set download data + # if BUCKET_NAME is set download data if ! aws s3 ls "s3://$BUCKET_NAME/$ENVIRONMENT" 2>&1 | grep -q 'An error occurred'; then aws s3 sync s3://$AWS_S3_BUCKET/$ENVIRONMENT/ $DATADIR/ fi @@ -63,6 +62,6 @@ ACTION=$1 mkdir -p $DATA_DIR/update/log/ if [ "$ACTION" = "web" ]; then start_web -elif [ "$ACTION" = "data" ]; then + elif [ "$ACTION" = "data" ]; then process_data fi