File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ INSTANCE_NAME=OHM Taginfo
7
7
INSTANCE_DESCRIPTION="This is a <b>taginfo test instance</b>. Change this text in your <tt>taginfo-config.json</tt>."
8
8
INSTANCE_ICON=/img/logo/world.png
9
9
INSTANCE_CONTACT=Anonymous
10
+ TAGINFO_PROJECT_REPO=https://github.com/taginfo/taginfo-projects.git
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ 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
+ # Function to replace the repo to get the projects information
28
+ sed -i -e ' s/https://github.com/taginfo/taginfo-projects.git/' $TAGINFO_PROJECT_REPO ' /g' $WORKDIR /taginfo/sources/projects/update.sh
29
+
30
+ # The follow line is requiered to avoid an issue -> require cannot load such file -- sqlite3
31
+ sed -i -e ' s/run_ruby "$SRCDIR\/update_characters.rb"/ruby "$SRCDIR\/update_characters.rb"/g' $WORKDIR /taginfo/sources/db/update.sh
32
+
27
33
update () {
28
34
echo " Download and update pbf files at $( date +%Y-%m-%d:%H-%M) "
29
35
@@ -45,9 +51,6 @@ update() {
45
51
# --server $REPLICATION_SERVER \
46
52
# $UPDATE_DIR/planet/planet.osm.pbf
47
53
48
- # The follow line is requiered to avoid an issue -> require cannot load such file -- sqlite3
49
- sed -i -e ' s/run_ruby "$SRCDIR\/update_characters.rb"/ruby "$SRCDIR\/update_characters.rb"/g' $WORKDIR /taginfo/sources/db/update.sh
50
-
51
54
# Update local DB
52
55
$WORKDIR /taginfo/sources/update_all.sh $UPDATE_DIR
53
56
mv $UPDATE_DIR /* /taginfo-* .db $DATA_DIR /
You can’t perform that action at this time.
0 commit comments