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

Put all config for synapse into /etc/matrix-synapse

This commit is contained in:
Josué Tille 2024-03-13 23:18:43 +01:00
parent 7add5975c1
commit fbc1fec989
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
5 changed files with 6 additions and 5 deletions

View file

@ -7,7 +7,7 @@ After=syslog.target network-online.target
User=turnserver User=turnserver
Group=turnserver Group=turnserver
Type=notify Type=notify
EnvironmentFile=/etc/default/coturn-__APP__ EnvironmentFile=/etc/matrix-__APP__/coturn_env
ExecStart=/usr/bin/turnserver -c /etc/matrix-__APP__/coturn.conf $EXTRA_OPTIONS --pidfile= ExecStart=/usr/bin/turnserver -c /etc/matrix-__APP__/coturn.conf $EXTRA_OPTIONS --pidfile=
Restart=on-failure Restart=on-failure
InaccessibleDirectories=/home InaccessibleDirectories=/home

View file

@ -71,7 +71,6 @@ ynh_backup --src_path="/etc/matrix-$app"
#================================================= #=================================================
ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app.service"
ynh_backup --src_path="/etc/default/coturn-$app"
ynh_backup --src_path="/etc/systemd/system/$app-coturn.service" ynh_backup --src_path="/etc/systemd/system/$app-coturn.service"
#================================================= #=================================================

View file

@ -193,7 +193,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=2
# Create systemd service for synapse and turnserver # Create systemd service for synapse and turnserver
ynh_add_systemd_config --service=$app --template=synapse.service ynh_add_systemd_config --service=$app --template=synapse.service
cp ../conf/default_coturn /etc/default/coturn-$app cp ../conf/default_coturn /etc/matrix-$app/coturn_env
ynh_add_systemd_config --service=$app-coturn --template=synapse-coturn.service ynh_add_systemd_config --service=$app-coturn --template=synapse-coturn.service
#================================================= #=================================================

View file

@ -36,7 +36,6 @@ ynh_script_progression --message="Removing app main directory" --weight=2
ynh_secure_remove --file=$code_dir ynh_secure_remove --file=$code_dir
ynh_secure_remove --file=/var/log/matrix-$app ynh_secure_remove --file=/var/log/matrix-$app
ynh_secure_remove --file=/etc/matrix-$app ynh_secure_remove --file=/etc/matrix-$app
ynh_secure_remove --file=/etc/default/coturn-$app
ynh_secure_remove --file=/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf ynh_secure_remove --file=/etc/nginx/conf.d/${server_name}.d/${app}_server_name.conf
#================================================= #=================================================

View file

@ -205,6 +205,9 @@ then
ynh_app_setting_set --app=$app --key=enable_dtls_for_audio_video_turn_call --value=$enable_dtls_for_audio_video_turn_call ynh_app_setting_set --app=$app --key=enable_dtls_for_audio_video_turn_call --value=$enable_dtls_for_audio_video_turn_call
fi fi
# remove legacy env file into /etc/default
ynh_secure_remove --file=/etc/default/coturn-$app
#================================================= #=================================================
# MIGRATION 7 : STANDARDIZE SYSTEMD UNIT # MIGRATION 7 : STANDARDIZE SYSTEMD UNIT
#================================================= #=================================================
@ -463,7 +466,7 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=3
# Create systemd service for synapse and turnserver # Create systemd service for synapse and turnserver
ynh_add_systemd_config --service=$app --template=synapse.service ynh_add_systemd_config --service=$app --template=synapse.service
cp ../conf/default_coturn /etc/default/coturn-$app cp ../conf/default_coturn /etc/matrix-$app/coturn_env
ynh_add_systemd_config --service=$app-coturn --template=synapse-coturn.service ynh_add_systemd_config --service=$app-coturn --template=synapse-coturn.service
#================================================= #=================================================