File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ COPY startapache.sh /app/startapache.sh
142
142
COPY startpostgres.sh /app/startpostgres.sh
143
143
COPY update.sh /app/update.sh
144
144
COPY start.sh /app/start.sh
145
+ COPY replace_domain.sh /app/replace_domain.sh
145
146
146
147
# Collapse image to single layer.
147
148
FROM scratch
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Replace API URLs on files
3
+ sed -i -e " s/www.openstreetmap.org/$OSMSEED_WEB_API_DOMAIN /g" /app/src/lib/lib.php
4
+ sed -i -e " s/www.openstreetmap.org/$OSMSEED_WEB_API_DOMAIN /g" /app/src/utils/update.php
5
+ sed -i -e " s/overpass-api.de/$OSMSEED_OVERPASS_API_DOMAIN /g" /app/src/utils/update.php
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Replace domains
4
+ ./replace_domain.sh
5
+
3
6
echo ' Starting init...'
4
7
sh /app/init.sh
5
8
echo ' Starting database and updates...'
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
export NOMINATIM_SETTINGS=' /app/src/build/settings/local_api.php'
3
-
4
- # Replace API URLs on files
5
- sed -i -e " s/www.openstreetmap.org/$OSMSEED_WEB_API_DOMAIN /g" /app/src/lib/lib.php
6
- sed -i -e " s/www.openstreetmap.org/$OSMSEED_WEB_API_DOMAIN /g" /app/src/utils/update.php
7
- sed -i -e " s/overpass-api.de/$OSMSEED_OVERPASS_API_DOMAIN /g" /app/src/utils/update.php
8
-
9
3
# echo 'Setup the app'
10
4
# /app/src/build/utils/setup.php --setup-website
11
5
6
+ # Replace domains
7
+ ./replace_domain.sh
8
+
12
9
flag=true
13
10
while " $flag " = true ; do
14
11
pg_isready -h $PG_HOST -p $PG_PORT > /dev/null 2>&2 || continue
You can’t perform that action at this time.
0 commit comments