From 053ffeac4b60e3765562f1000879827bc5f9de03 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Thu, 2 May 2024 09:24:20 -0500 Subject: [PATCH] Update settings.yml for key oauth - staging --- images/web/start.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/images/web/start.sh b/images/web/start.sh index 58d06a0b..09d29699 100755 --- a/images/web/start.sh +++ b/images/web/start.sh @@ -32,10 +32,13 @@ sed -i -e 's/smtp_port: 25/smtp_port: '$MAILER_PORT'/g' $workdir/config/settings #### SET UP ID KEY sed -i -e 's/id_application: ""/id_application: "'$OPENSTREETMAP_id_key'"/g' $workdir/config/settings-local.yml +sed -i -e 's/#id_application: ""/id_application: "'$OPENSTREETMAP_id_key'"/g' $workdir/config/settings.yml ### SET UP OAUTH ID AND KEY sed -i -e 's/OAUTH_CLIENT_ID/'$OAUTH_CLIENT_ID'/g' $workdir/config/settings-local.yml sed -i -e 's/OAUTH_KEY/'$OAUTH_KEY'/g' $workdir/config/settings-local.yml +sed -i -e 's/# oauth_application: "OAUTH_CLIENT_ID"/oauth_application: "'$OAUTH_CLIENT_ID'"/g' $workdir/config/settings.yml +sed -i -e 's/# oauth_key: "OAUTH_CLIENT_ID"/oauth_key: "'$OAUTH_KEY'"/g' $workdir/config/settings.yml #### Setup env vars for memcached server sed -i -e 's/memcache_servers: \[\]/memcache_servers: "'$OPENSTREETMAP_memcache_servers'"/g' $workdir/config/settings-local.yml