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

Clean ynh_backup fonction

This commit is contained in:
Josué Tille 2018-02-12 18:13:44 +01:00
parent c8c90aa226
commit 753e0b5de5

View file

@ -39,20 +39,20 @@ final_path=$(ynh_app_setting_get $app final_path)
# BACKUP THE NGINX CONFIGURATION # BACKUP THE NGINX CONFIGURATION
#================================================= #=================================================
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" "nginx.conf" ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf"
#================================================= #=================================================
# BACKUP SYNAPSE CONFIG # BACKUP SYNAPSE CONFIG
#================================================= #=================================================
ynh_backup "/etc/matrix-$app" "synapse_config" ynh_backup "/etc/matrix-$app"
#================================================= #=================================================
# BACKUP COTURN CONFIG # BACKUP COTURN CONFIG
#================================================= #=================================================
ynh_backup "/etc/turnserver.conf" "coturn_config" ynh_backup "/etc/turnserver.conf"
ynh_backup "/etc/default/coturn" "coturn_config_default" ynh_backup "/etc/default/coturn"
#================================================= #=================================================
# BACKUP SYSTEMD # BACKUP SYSTEMD
@ -85,4 +85,4 @@ ynh_psql_dump_db "$synapse_db_name" > ${YNH_CWD}/dump.sql
# BACKUP SYNAPSE LOG # BACKUP SYNAPSE LOG
#================================================= #=================================================
ynh_backup "/var/log/matrix-$app" "log" ynh_backup "/var/log/matrix-$app"