Skip to content

Commit 2ce0c2b

Browse files
committed
fix: support read only root filesystem
1 parent 2aa0932 commit 2ce0c2b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docker/loadRuntimeConfig.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#!/bin/bash
1+
#! /bin/sh
22
if grep -q "__CENTRAL_SETTLEMENTS_ENDPOINT__" /usr/share/nginx/html/runtime-env.js; then
3-
sed -i 's#__CENTRAL_SETTLEMENTS_ENDPOINT__#'"$CENTRAL_SETTLEMENTS_ENDPOINT"'#g' /usr/share/nginx/html/runtime-env.js
4-
sed -i 's#__CENTRAL_LEDGER_ENDPOINT__#'"$CENTRAL_LEDGER_ENDPOINT"'#g' /usr/share/nginx/html/runtime-env.js
5-
sed -i 's#__REPORTING_TEMPLATE_API_ENDPOINT__#'"$REPORTING_TEMPLATE_API_ENDPOINT"'#g' /usr/share/nginx/html/runtime-env.js
3+
sed -i 's#__CENTRAL_SETTLEMENTS_ENDPOINT__#'"$CENTRAL_SETTLEMENTS_ENDPOINT"'#g' /usr/share/nginx/html/runtime-env.js;
4+
sed -i 's#__CENTRAL_LEDGER_ENDPOINT__#'"$CENTRAL_LEDGER_ENDPOINT"'#g' /usr/share/nginx/html/runtime-env.js;
5+
sed -i 's#__REPORTING_TEMPLATE_API_ENDPOINT__#'"$REPORTING_TEMPLATE_API_ENDPOINT"'#g' /usr/share/nginx/html/runtime-env.js;
66
else
7-
echo "skipping replacement."
7+
echo "skipping replacement.";
88
fi
99

1010
exec "$@"

0 commit comments

Comments
 (0)