From 8426d7fdc4d0c2c1062d18510ffccd7c1804ad93 Mon Sep 17 00:00:00 2001 From: Amo Date: Thu, 27 May 2021 01:43:44 +0530 Subject: [PATCH] Add upload folder if it don't exists while upgrade --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3cedf8b..5abf799 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,7 +114,9 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" ynh_secure_remove bootstrap/cache/* - # Restore the config file + # Restore the config file and data + mkdir -p "$final_path/storage/upload/" + mkdir -p "$final_path/storage/export/" cp -a "$tmpdir/storage/upload/*" "$final_path/storage/upload/." cp -a "$tmpdir/storage/export/*" "$final_path/storage/export/." cp -a "$tmpdir/.env" "$final_path/.env"