fix: kgcmkey quotes error
Some checks failed
/ deploy (push) Failing after 5s

This commit is contained in:
ange 2024-12-28 13:02:43 +00:00
parent 5b894d0007
commit c8543f2ce7
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -34,7 +34,7 @@ function kgcmkey() {
}; export -f kgcmkey
function get_synapse_key() {
kgcmkey synapse 'homeserver\.yaml' | awk -F\" "/^\s*$1/{print \$2}" || openssl rand -hex 32
kgcmkey synapse homeserver.yaml | awk -F\" "/^\s*$1/{print \$2}" || openssl rand -hex 32
}
@ -51,8 +51,8 @@ export TURN_SHARED_SECRET; TURN_SHARED_SECRET="$(get_synapse_key turn_shared_s
export REGISTRATION_SECRET; REGISTRATION_SECRET="$(get_synapse_key registration_shared_secret)"
kcreatecm synapse \
--from-file=homeserver.yaml=<(envsubst "$(env | xargs printf '$%s ')" < config/homeserver.yaml) \
--from-file=log.config=<(envsubst "$(env | xargs printf '$%s ')" < config/log.config)
--from-file=homeserver.yaml=<(envsubst < config/homeserver.yaml) \
--from-file=log.config=<(envsubst < config/log.config)
kapply common/keys.yaml common/app.yaml