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

Update backup

This commit is contained in:
Thatoo 2019-11-22 23:39:15 +01:00 committed by GitHub
parent fe6db924cb
commit 5b913a260b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,10 @@ ynh_script_progression --message="Backing up the main app directory..." --weight
ynh_script_progression --message="Backing up nginx web server configuration..." --weight=1
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
if yunohost --output-as plain domain list | grep -q "^$server_name$"
then
ynh_backup --src_path="/etc/nginx/conf.d/${server_name}.d/server_name.conf"
fi
#=================================================
# BACKUP THE POSTGRESQL DATABASE