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

Fix CI errors

This commit is contained in:
Josué Tille 2021-03-15 11:54:27 +01:00
parent 284f6b93de
commit d4ede98e21
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 4 additions and 2 deletions

View file

@ -80,7 +80,7 @@ ynh_install_app_dependencies $dependances
ynh_script_progression --message="Recreating the dedicated system user..." --weight=3 ynh_script_progression --message="Recreating the dedicated system user..." --weight=3
# Create the dedicated user (if not existing) # Create the dedicated user (if not existing)
ynh_system_user_create --username=$synapse_user --home_dir=$data_path ynh_system_user_create --username=$synapse_user --home_dir=$final_path
adduser $synapse_user ssl-cert adduser $synapse_user ssl-cert
adduser turnserver ssl-cert adduser turnserver ssl-cert

View file

@ -190,8 +190,9 @@ then
ynh_script_progression --message="Generating synapse secret..." --weight=1 ynh_script_progression --message="Generating synapse secret..." --weight=1
# Go in virtualenvironnement # Go in virtualenvironnement
PS1=${PS1:-} set +u
source $final_path/bin/activate source $final_path/bin/activate
set -u
# Generate config and keys # Generate config and keys
python -m synapse.app.homeserver --keys-directory /etc/matrix-$app/ --generate-config --generate-keys --server-name $server_name --report-stats=no -c homeserver.yml python -m synapse.app.homeserver --keys-directory /etc/matrix-$app/ --generate-config --generate-keys --server-name $server_name --report-stats=no -c homeserver.yml
@ -399,6 +400,7 @@ ynh_add_fail2ban_config --use_template
# SETUP PERMISSIONS # SETUP PERMISSIONS
#================================================= #=================================================
ynh_script_progression --message="Configuring permissions..." --weight=1 ynh_script_progression --message="Configuring permissions..." --weight=1
ynh_legacy_permissions_delete_all
ynh_permission_url --permission=main --url=$domain/_matrix/cas_server.php/login --auth_header=true ynh_permission_url --permission=main --url=$domain/_matrix/cas_server.php/login --auth_header=true
ynh_permission_update --permission=main --label="Synapse server SSO authentication" --show_tile=false --protected=true ynh_permission_update --permission=main --label="Synapse server SSO authentication" --show_tile=false --protected=true