File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -50,26 +50,15 @@ process_data() {
50
50
fi
51
51
}
52
52
53
- get_taginfo_data () {
54
- while true
55
- do
56
- # if BUCKET_NAME is set download data
57
- if ! aws s3 ls " s3://$BUCKET_NAME /$ENVIRONMENT " 2>&1 | grep -q ' An error occurred' ; then
58
- aws s3 sync s3://$AWS_S3_BUCKET /$ENVIRONMENT / $DATADIR /
59
- fi
60
- sleep $INTERVAL_DOWNLOAD_DATA
61
- done
62
-
63
- }
64
-
65
53
start_web () {
66
54
echo " Start...Taginfo web service"
67
- get_taginfo_data
55
+ if ! aws s3 ls " s3://$BUCKET_NAME /$ENVIRONMENT " 2>&1 | grep -q ' An error occurred' ; then
56
+ aws s3 sync s3://$AWS_S3_BUCKET /$ENVIRONMENT / $DATADIR /
57
+ fi
68
58
cd $WORKDIR /taginfo/web && ./taginfo.rb
69
59
}
70
60
71
61
ACTION=$1
72
-
73
62
# Overwrite the config file
74
63
[[ ! -z ${OVERWRITE_CONFIG_URL} ]] && wget $OVERWRITE_CONFIG_URL -o /usr/src/app/taginfo-config.json
75
64
You can’t perform that action at this time.
0 commit comments