From 5b913a260b0a773b182e6203f39ffd6fe05cc072 Mon Sep 17 00:00:00 2001 From: Thatoo Date: Fri, 22 Nov 2019 23:39:15 +0100 Subject: [PATCH] Update backup --- scripts/backup | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index 2f76c7a..8a5a7fb 100644 --- a/scripts/backup +++ b/scripts/backup @@ -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