Skip to content

Commit 48c6c19

Browse files
new attempt for file rename
1 parent 29b587f commit 48c6c19

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

otp-docker/add-nonce.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22
apk add jq
3+
# This fails sometimes, but that's ok
4+
mv /var/opentripplanner/otp-runner-graph-build-manifest.json /var/opentripplanner/otp-runner-server-only-manifest.json
5+
36
export nonce=$(jq -r .nonce /var/opentripplanner/otp-runner-server-only-manifest.json)
47
touch /etc/caddy/static/status-new.json
58
cat /etc/caddy/static/status.json | jq --arg n $nonce '.nonce = $n' > /etc/caddy/static/status-new.json

otp-docker/otp-graph-build-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ services:
2222
target: /etc/caddy/
2323
add-status-json-nonce:
2424
image: alpine
25-
command: /bin/sh -e "mv /var/opentripplanner/otp-runner-graph-build-manifest.json /var/opentripplanner/otp-runner-server-only-manifest.json && /add-nonce.sh"
25+
command: "/bin/sh -e ./add-nonce.sh"
2626
depends_on:
2727
download-bundle:
2828
condition: service_completed_successfully

0 commit comments

Comments
 (0)