mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Cleanup default synapse config not used
This commit is contained in:
parent
353b23cf87
commit
86293ea5c6
6 changed files with 0 additions and 8 deletions
|
@ -1,3 +0,0 @@
|
||||||
# Specify environment variables used when running Synapse
|
|
||||||
# SYNAPSE_CACHE_FACTOR=1 (default)
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
WorkingDirectory=/opt/yunohost/matrix-__APP__
|
WorkingDirectory=/opt/yunohost/matrix-__APP__
|
||||||
BindPaths=/etc/matrix-__APP__
|
BindPaths=/etc/matrix-__APP__
|
||||||
EnvironmentFile=/etc/default/matrix-__APP__
|
|
||||||
ExecStartPre=/opt/yunohost/matrix-__APP__/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-__APP__/homeserver.yaml --config-path=/etc/matrix-__APP__/conf.d/ --generate-keys
|
ExecStartPre=/opt/yunohost/matrix-__APP__/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-__APP__/homeserver.yaml --config-path=/etc/matrix-__APP__/conf.d/ --generate-keys
|
||||||
ExecStart=/opt/yunohost/matrix-__APP__/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-__APP__/homeserver.yaml --config-path=/etc/matrix-__APP__/conf.d/
|
ExecStart=/opt/yunohost/matrix-__APP__/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-__APP__/homeserver.yaml --config-path=/etc/matrix-__APP__/conf.d/
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
@ -70,7 +70,6 @@ ynh_backup --src_path="/etc/matrix-$app"
|
||||||
# BACKUP SYSTEMD
|
# BACKUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/default/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/default/coturn-$app"
|
||||||
ynh_backup --src_path="/etc/systemd/system/$app-coturn.service"
|
ynh_backup --src_path="/etc/systemd/system/$app-coturn.service"
|
||||||
|
|
|
@ -191,7 +191,6 @@ ynh_app_setting_set --app=$app --key=macaroon_secret_key --value="$macaroon_secr
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=2
|
ynh_script_progression --message="Configuring a systemd service..." --weight=2
|
||||||
|
|
||||||
# Create systemd service for synapse and turnserver
|
# Create systemd service for synapse and turnserver
|
||||||
cp ../conf/default_matrix-synapse /etc/default/matrix-$app
|
|
||||||
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/default/coturn-$app
|
||||||
|
|
|
@ -43,7 +43,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/matrix-$app
|
|
||||||
ynh_secure_remove --file=/etc/default/coturn-$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
|
||||||
|
|
||||||
|
|
|
@ -460,7 +460,6 @@ yunohost service add $app-coturn --needs_exposed_ports $port_turnserver_tls --de
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=3
|
ynh_script_progression --message="Upgrading systemd configuration..." --weight=3
|
||||||
|
|
||||||
# Create systemd service for synapse and turnserver
|
# Create systemd service for synapse and turnserver
|
||||||
cp ../conf/default_matrix-synapse /etc/default/matrix-$app
|
|
||||||
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/default/coturn-$app
|
||||||
|
|
Loading…
Reference in a new issue