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:
parent
379ce9ce07
commit
fefef3dda7
1 changed files with 4 additions and 4 deletions
|
@ -106,9 +106,9 @@ then
|
|||
mkdir -p "$tmpdir/storage/export"
|
||||
mkdir -p "$final_path/storage/upload/"
|
||||
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/storage/export/*" "$tmpdir/storage/export/"
|
||||
cp -aT "$final_path/storage/export" "$tmpdir/storage/export/"
|
||||
ynh_secure_remove --file="$final_path"
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
|
@ -117,8 +117,8 @@ then
|
|||
# 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 -aT "$tmpdir/storage/upload" "$final_path/storage/upload"
|
||||
cp -aT "$tmpdir/storage/export" "$final_path/storage/export"
|
||||
cp -a "$tmpdir/.env" "$final_path/.env"
|
||||
# Remove temporary directory
|
||||
ynh_secure_remove --file="$tmpdir"
|
||||
|
|
Loading…
Reference in a new issue