vector-im-hydrogen-web/docker/dynamic-config.sh

12 lines
284 B
Bash
Raw Normal View History

2023-01-11 19:06:25 +01:00
#!/bin/sh
set -eux
if [ -n "${CONFIG_OVERRIDE:-}" ]; then
# Use config override environment variable if set
echo "$CONFIG_OVERRIDE" > /tmp/config.json
else
# Otherwise, use the default config that was bundled in the image
cp /config.json.bundled /tmp/config.json
2023-01-11 19:06:25 +01:00
fi