1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00

fix upgrade

This commit is contained in:
yalh76 2021-04-01 12:42:59 +02:00
parent 7713521f6d
commit 0661372427

View file

@ -126,7 +126,7 @@ then
cp -a "$final_path/$app/config/prod.secret.exs" "$tmpdir/prod.secret.exs"
# Backup upload dir
rsync -a "$final_path/uploads" "$tmpdir/."
rsync -a "$final_path/$app/uploads" "$tmpdir/."
# Remove the app directory securely
ynh_secure_remove --file="$final_path/$app"
@ -138,7 +138,7 @@ then
cp -a "$tmpdir/prod.secret.exs" "$final_path/$app/config/prod.secret.exs"
# Restore upload dir
sync -a "$tmpdir/uploads" "$final_path/."
sync -a "$tmpdir/uploads" "$final_path/$app/."
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"