1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mobilizon_ynh.git synced 2024-09-03 19:46:19 +02:00
This commit is contained in:
yalh76 2021-03-31 22:28:10 +02:00
parent 5780e424cf
commit 7713521f6d

View file

@ -125,15 +125,21 @@ then
# Backup the config file in the temp dir
cp -a "$final_path/$app/config/prod.secret.exs" "$tmpdir/prod.secret.exs"
# Backup upload dir
rsync -a "$final_path/uploads" "$tmpdir/."
# Remove the app directory securely
ynh_secure_remove --file="$final_path/$app"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path/$app"
#Copy the admin saved settings from tmp directory to final path
# Restore the config file
cp -a "$tmpdir/prod.secret.exs" "$final_path/$app/config/prod.secret.exs"
# Restore upload dir
sync -a "$tmpdir/uploads" "$final_path/."
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"
fi