File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,13 @@ grep -v '^ *//' $WORKDIR/taginfo/taginfo-config-example.json |
24
24
[[ ! -z $INSTANCE_ICON +z} ]] && jq --arg a " ${INSTANCE_ICON} " ' .instance.icon = $a' $WORKDIR /taginfo-config.json > tmp.json && mv tmp.json $WORKDIR /taginfo-config.json
25
25
[[ ! -z $INSTANCE_CONTACT +z} ]] && jq --arg a " ${INSTANCE_CONTACT} " ' .instance.contact = $a' $WORKDIR /taginfo-config.json > tmp.json && mv tmp.json $WORKDIR /taginfo-config.json
26
26
27
+ # Update DBs to create
28
+ [[ ! -z $DOWNLOAD_DB +z} ]] && jq --arg a " ${DOWNLOAD_DB} " ' .sources.download = $a' $WORKDIR /taginfo-config.json > tmp.json && mv tmp.json $WORKDIR /taginfo-config.json
29
+ [[ ! -z $CREATE_DB +z} ]] && jq --arg a " ${CREATE_DB} " ' .sources.create = $a' $WORKDIR /taginfo-config.json > tmp.json && mv tmp.json $WORKDIR /taginfo-config.json
30
+
27
31
# Function to replace the repo to get the projects information
28
- # TAGINFO_PROJECT_REPO=${TAGINFO_PROJECT_REPO//\//\\/}
29
- # sed -i -e 's/https:\/\/github.com\/taginfo\/taginfo-projects.git/'$TAGINFO_PROJECT_REPO'/g' $WORKDIR/taginfo/sources/projects/update.sh
30
- git clone --quiet --depth=1 $TAGINFO_PROJECT_REPO " $UPDATE_DIR /taginfo-projects"
32
+ TAGINFO_PROJECT_REPO=${TAGINFO_PROJECT_REPO// \/ / \\ / }
33
+ sed -i -e ' s/https:\/\/github.com\/taginfo\/taginfo-projects.git/' $TAGINFO_PROJECT_REPO ' /g' $WORKDIR /taginfo/sources/projects/update.sh
31
34
32
35
# The follow line is requiered to avoid an issue -> require cannot load such file -- sqlite3
33
36
sed -i -e ' s/run_ruby "$SRCDIR\/update_characters.rb"/ruby "$SRCDIR\/update_characters.rb"/g' $WORKDIR /taginfo/sources/db/update.sh
You can’t perform that action at this time.
0 commit comments