mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
fix cp
This commit is contained in:
parent
b0dbbd9d33
commit
57ab776a87
1 changed files with 2 additions and 2 deletions
|
@ -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/."
|
||||||
|
|
Loading…
Add table
Reference in a new issue