15 lines
373 B
Bash
15 lines
373 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
assignment=$(sed \
|
|
-e 's/^window\.__THOTHII_CONFIG__ = //' \
|
|
-e 's/;$//' \
|
|
/usr/share/nginx/html/config.js)
|
|
|
|
printf '%s\n' "$assignment" \
|
|
| jq -e --arg expected "${BACKEND_BASE_URL-/api}" \
|
|
'type == "object" and keys == ["backendBaseUrl"] and .backendBaseUrl == $expected' \
|
|
>/dev/null
|
|
|
|
printf '%s\n' "frontend runtime config smoke: ok"
|