From 19f73fb5ab6421c2c937c09255ad8bfa8edf14bc Mon Sep 17 00:00:00 2001 From: gyurix Date: Tue, 2 Sep 2025 11:15:31 +0200 Subject: [PATCH] Update start.sh: fix path for homeserver.yaml and upgrade.json; enhance security by clearing registration_shared_secret --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 380954b..44cc67a 100644 --- a/start.sh +++ b/start.sh @@ -118,10 +118,10 @@ register_admin_user() { echo "Admin user created successfully!" # renmove registration_shared_secret from homeserver.yaml for security - yq eval '.registration_shared_secret = ""' /data/homeserver.yaml > /data/homeserver.yaml.tmp && mv /data/homeserver.yaml.tmp /data/homeserver.yaml + yq eval '.registration_shared_secret = ""' /data/homeserver.yaml > /tmp/homeserver.yaml.tmp && mv /tmp/homeserver.yaml.tmp /data/homeserver.yaml # trigger a restart of synapse to reload config - echo '{"NAME":"service-matrix.containers.matrixserver-app"}' | jq -r > /var/tmp/input/upgrade.json + echo '{"NAME":"service-matrix.containers.matrixserver-app"}' | jq -r > /var/tmp/shared/input/upgrade.json echo "Matrix server app restart requested" return 0