From a2c29eb5eb97738efe864a53eee6d05cc046a612 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 6 Apr 2021 20:57:05 +0200 Subject: [PATCH] fix sync_home restore --- scripts/restore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/restore b/scripts/restore index 323bb7b..a1293f9 100644 --- a/scripts/restore +++ b/scripts/restore @@ -90,6 +90,9 @@ chown -R "$app": $final_path #================================================= ynh_script_progression --message="Recreating sync directory..." +# Use --not_mandatory for the data directory, because if the backup has been made with BACKUP_CORE_ONLY, there's no data into the backup. +ynh_restore_file --origin_path="$sync_home" --not_mandatory + # Make directories and set rights mkdir -p "$sync_home" chown -R "$app": "$sync_home"