1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/aeneria_ynh.git synced 2024-09-03 18:06:15 +02:00

Keep private dir when upgrading

This commit is contained in:
Simon Mellerin 2024-01-08 10:06:35 +01:00
parent dbc4a80cf2
commit 04b3c03580

View file

@ -58,6 +58,9 @@ then
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$tmpdir"
# Keep private dir
mv "$install_dir/private" "$tmpdir"
# Replace the old aeneria by the new one
ynh_secure_remove --file="$install_dir"
mv "$tmpdir" "$install_dir"