1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Merge pull request #300 from YunoHost-Apps/fix-changeurl

Fix change_url's ynh_permission_url parameters
This commit is contained in:
Josue-T 2022-09-21 06:22:02 +02:00 committed by GitHub
commit 49adc3346b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,14 +117,12 @@ ynh_add_config --template="homeserver.yaml" --destination="/etc/matrix-$app/home
ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml" ynh_add_config --template="log.yaml" --destination="/etc/matrix-$app/log.yaml"
#================================================= #=================================================
# SETUP PERMISSIONS # SECURE FILES AND DIRECTORIES
#================================================= #=================================================
ynh_script_progression --message="Configuring permissions..." --weight=1 # Only setting permissions for the two config files updated above
ynh_permission_url --permission=server_api --clear_urls chown $synapse_user:root -R /etc/matrix-$app
ynh_permission_url --permission=server_api --url=$domain/_matrix --additional_urls=$server_name/.well-known/matrix chmod u=rwX,g=rX,o= -R /etc/matrix-$app
ynh_permission_url --permission=admin_api --clear_urls
ynh_permission_url --permission=admin_api --url=$domain/_synapse
#================================================= #=================================================
# RELOAD SERVICES # RELOAD SERVICES