From e3b992c8e981aa1cc779b58b25823b4462cb3414 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 21 Feb 2022 21:03:01 +0100 Subject: [PATCH] Fix change_url's ynh_permission_url parameters --- scripts/change_url | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index d1c1bf1..5af1620 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -114,13 +114,21 @@ fi ynh_add_config --template="homeserver.yaml" --destination="/etc/matrix-$app/homeserver.yaml" ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml" +#================================================= +# SECURE FILES AND DIRECTORIES +#================================================= + +# Only setting permissions for the two config files updated above +chown $synapse_user:root -R /etc/matrix-$app +chmod u=rwX,g=rX,o= -R /etc/matrix-$app + #================================================= # SETUP PERMISSIONS #================================================= ynh_script_progression --message="Configuring permissions..." --weight=1 ynh_permission_url --permission=server_api --clear_urls -ynh_permission_url --permission=server_api --url=$domain/_matrix --additional_urls=$server_name/.well-known/matrix \ +ynh_permission_url --permission=server_api --url=$domain/_matrix --add_url=$server_name/.well-known/matrix \ #================================================= # RELOAD SERVICES