From ab690225c195cc63a593f5813c38d866476b11c5 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sun, 17 Dec 2023 21:06:55 +0100 Subject: [PATCH] Properly restore $data_dir --- scripts/restore | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/restore b/scripts/restore index 6e0a9ef..2cd0861 100755 --- a/scripts/restore +++ b/scripts/restore @@ -20,6 +20,16 @@ ynh_restore_file --origin_path="$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" +#================================================= +# RESTORE THE DATA DIRECTORY +#================================================= +ynh_script_progression --message="Restoring the data directory..." --weight=1 + +ynh_restore_file --origin_path="$data_dir" --not_mandatory + +chown -R $app:www-data "$data_dir" +chmod -R 750 $data_dir + #================================================= # RESTORE THE MYSQL DATABASE #=================================================