infra/k8s/matrix/bridge-init/initialize-bridge.sh
2024-06-15 12:41:27 -07:00

7 lines
287 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
cp /config/config.yaml /data/config.yaml
sed -i "s#AS_TOKEN#${AS_TOKEN}#g" /data/config.yaml
sed -i "s#HS_TOKEN#${HS_TOKEN}#g" /data/config.yaml
sed -i "s#TG_API_ID#${TG_API_ID}#g" /data/config.yaml
sed -i "s#TG_API_HASH#${TG_API_HASH}#g" /data/config.yaml