From 57ab776a878832a25e742e16226e997331813c6f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 14 Apr 2021 20:55:05 +0200 Subject: [PATCH] fix cp --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 27e6dcc..c23edbb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -138,7 +138,7 @@ then tmpdir="$(mktemp -d)" # 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 rsync -a "$final_path/$app/uploads" "$tmpdir/." @@ -150,7 +150,7 @@ then ynh_setup_source --dest_dir="$final_path/$app" # 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 rsync -a "$tmpdir/uploads" "$final_path/$app/."