mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
Fix #76
This commit is contained in:
parent
5780e424cf
commit
7713521f6d
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue