From 73d603c12a9d88cea79773c5c67005f20126bb87 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 14 Aug 2021 16:53:00 +0200 Subject: [PATCH] fix backup/restore --- scripts/backup | 6 +++--- scripts/restore | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/backup b/scripts/backup index 9791d68..533955c 100644 --- a/scripts/backup +++ b/scripts/backup @@ -39,7 +39,7 @@ ynh_print_info --message="Declaring files to be backed up..." # BACKUP THE APP MAIN DIR #================================================= -ynh_backup --src_path="$final_path" +ynh_backup --src_path="$final_path" --not_mandatory #================================================= # BACKUP THE NGINX CONFIGURATION @@ -50,10 +50,10 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # SPECIFIC BACKUP #================================================= -# BACKUP THE JENKINS' BOOT CONFIG +# BACKUP VARIOUS FILES #================================================= -ynh_backup --src_path=/etc/default/$app +ynh_backup --src_path="/etc/default/$app" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index b283384..5ce93ce 100644 --- a/scripts/restore +++ b/scripts/restore @@ -102,7 +102,7 @@ dpkg --install --force-confnew ../conf/jenkins.deb #================================================= ynh_script_progression --message="Restoring the app main directory..." -ynh_restore_file --origin_path="$final_path" +ynh_restore_file --origin_path="$final_path" --not_mandatory #================================================= # RESTORE THE JENKINS' BOOT CONFIG