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

Fix upgrade

This commit is contained in:
Amo 2021-05-28 07:12:32 +05:30
parent 379ce9ce07
commit fefef3dda7

View file

@ -106,9 +106,9 @@ then
mkdir -p "$tmpdir/storage/export" mkdir -p "$tmpdir/storage/export"
mkdir -p "$final_path/storage/upload/" mkdir -p "$final_path/storage/upload/"
mkdir -p "$final_path/storage/export/" mkdir -p "$final_path/storage/export/"
cp -a "$final_path/storage/upload/*" "$tmpdir/storage/upload/" cp -aT "$final_path/storage/upload" "$tmpdir/storage/upload/$"
cp -a "$final_path/.env" "$tmpdir/.env" cp -a "$final_path/.env" "$tmpdir/.env"
cp -a "$final_path/storage/export/*" "$tmpdir/storage/export/" cp -aT "$final_path/storage/export" "$tmpdir/storage/export/"
ynh_secure_remove --file="$final_path" ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
@ -117,8 +117,8 @@ then
# Restore the config file and data # Restore the config file and data
mkdir -p "$final_path/storage/upload/" mkdir -p "$final_path/storage/upload/"
mkdir -p "$final_path/storage/export/" mkdir -p "$final_path/storage/export/"
cp -a "$tmpdir/storage/upload/*" "$final_path/storage/upload/." cp -aT "$tmpdir/storage/upload" "$final_path/storage/upload"
cp -a "$tmpdir/storage/export/*" "$final_path/storage/export/." cp -aT "$tmpdir/storage/export" "$final_path/storage/export"
cp -a "$tmpdir/.env" "$final_path/.env" cp -a "$tmpdir/.env" "$final_path/.env"
# Remove temporary directory # Remove temporary directory
ynh_secure_remove --file="$tmpdir" ynh_secure_remove --file="$tmpdir"