Skip to content

Commit 30bacde

Browse files
author
Rub21
committed
Taginfo update projects repos
1 parent 3fef647 commit 30bacde

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.env-taginfo.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ INSTANCE_NAME=OHM Taginfo
77
INSTANCE_DESCRIPTION="This is a <b>taginfo test instance</b>. Change this text in your <tt>taginfo-config.json</tt>."
88
INSTANCE_ICON=/img/logo/world.png
99
INSTANCE_CONTACT=Anonymous
10+
TAGINFO_PROJECT_REPO=https://github.com/taginfo/taginfo-projects.git

images/taginfo/start.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ grep -v '^ *//' $WORKDIR/taginfo/taginfo-config-example.json |
2424
[[ ! -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
2525
[[ ! -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
2626

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+
2733
update() {
2834
echo "Download and update pbf files at $(date +%Y-%m-%d:%H-%M)"
2935

@@ -45,9 +51,6 @@ update() {
4551
# --server $REPLICATION_SERVER \
4652
# $UPDATE_DIR/planet/planet.osm.pbf
4753

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-
5154
# Update local DB
5255
$WORKDIR/taginfo/sources/update_all.sh $UPDATE_DIR
5356
mv $UPDATE_DIR/*/taginfo-*.db $DATA_DIR/

0 commit comments

Comments
 (0)