adapt renderd.conf and add compilation of cyclosm style

This commit is contained in:
nobohan
2023-06-25 17:40:32 +02:00
parent 6276d18671
commit c2b79805a0
3 changed files with 29 additions and 1 deletions
+7 -1
View File
@@ -129,6 +129,12 @@ if [ "$1" == "run" ]; then
# Clean /tmp
rm -rf /tmp/*
cd /data/style/
git clone --single-branch --branch v0.6 https://github.com/cyclosm/cyclosm-cartocss-style.git --depth 1
# carto build
carto cyclosm-cartocss-style/project.mml > mapnik.xml
# migrate old files
if [ -f /data/database/PG_VERSION ] && ! [ -d /data/database/postgres/ ]; then
mkdir /data/database/postgres/
@@ -164,7 +170,7 @@ if [ "$1" == "run" ]; then
setPostgresPassword
# Configure renderd threads
sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /etc/renderd.conf
#sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /etc/renderd.conf
# start cron job to trigger consecutive updates
if [ "${UPDATES:-}" == "enabled" ] || [ "${UPDATES:-}" == "1" ]; then