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
|
@ -124,6 +124,9 @@ then
|
||||||
|
|
||||||
# Backup the config file in the temp dir
|
# Backup the config file in the temp dir
|
||||||
cp -a "$final_path/$app/config/prod.secret.exs" "$tmpdir/prod.secret.exs"
|
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
|
# Remove the app directory securely
|
||||||
ynh_secure_remove --file="$final_path/$app"
|
ynh_secure_remove --file="$final_path/$app"
|
||||||
|
@ -131,8 +134,11 @@ then
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path/$app"
|
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"
|
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
|
# Remove the tmp directory securely
|
||||||
ynh_secure_remove --file="$tmpdir"
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue