From cbe521866e860bb5443295e0d986309a59b02947 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 14 Apr 2021 20:56: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 b1321f9..f3abe04 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -134,7 +134,7 @@ then tmpdir="$(mktemp -d)" # Backup the env file in the temp dir - cp -a "$final_path/.env" "$tmpdir/.env" + cp -af "$final_path/.env" "$tmpdir/.env" # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -144,7 +144,7 @@ then ynh_setup_source --dest_dir="$final_path" --source_id="$architecture" #Copy the admin saved settings from tmp directory to final path - cp -a "$tmpdir/.env" "$final_path/.env" + cp -af "$tmpdir/.env" "$final_path/.env" # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir"