1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

Add upload folder if it don't exists while upgrade

This commit is contained in:
Amo 2021-05-27 01:43:44 +05:30
parent 615ca52d46
commit 8426d7fdc4

View file

@ -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"