Skip to content

Commit 77d49e2

Browse files
committed
Add Central version to client-config.json
1 parent 477e4b0 commit 77d49e2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"centralVersion": "$CENTRAL_VERSION",
23
"oidcEnabled": $OIDC_ENABLED
34
}

files/nginx/setup-odk.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if [[ $OIDC_ENABLED != 'true' ]] && [[ $OIDC_ENABLED != 'false' ]]; then
77
exit 1
88
fi
99

10+
CENTRAL_VERSION=$(cat /usr/share/nginx/html/version.txt)
11+
export CENTRAL_VERSION
1012
envsubst < /usr/share/odk/nginx/client-config.json.template > /usr/share/nginx/html/client-config.json
1113

1214
# Generate self-signed keys for the incorrect (catch-all) HTTPS listener. This

0 commit comments

Comments
 (0)