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-04-14 20:55:05 +02:00
parent b0dbbd9d33
commit 57ab776a87

View file

@ -138,7 +138,7 @@ then
tmpdir="$(mktemp -d)" tmpdir="$(mktemp -d)"
# 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 -af "$final_path/$app/config/prod.secret.exs" "$tmpdir/prod.secret.exs"
# Backup upload dir # Backup upload dir
rsync -a "$final_path/$app/uploads" "$tmpdir/." rsync -a "$final_path/$app/uploads" "$tmpdir/."
@ -150,7 +150,7 @@ then
ynh_setup_source --dest_dir="$final_path/$app" ynh_setup_source --dest_dir="$final_path/$app"
# Restore the config file # Restore the config file
cp -a "$tmpdir/prod.secret.exs" "$final_path/$app/config/prod.secret.exs" cp -af "$tmpdir/prod.secret.exs" "$final_path/$app/config/prod.secret.exs"
# Restore upload dir # Restore upload dir
rsync -a "$tmpdir/uploads" "$final_path/$app/." rsync -a "$tmpdir/uploads" "$final_path/$app/."