From 290e1299fc823e6d217c9016e453d82862081e8e Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 14 Apr 2021 20:55:31 +0200 Subject: [PATCH] Fix cp --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 73bb2d3..bd2d62b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -143,10 +143,10 @@ then tmpdir="$(mktemp -d)" # Backup the config file in the temp dir - cp -a "$final_path/config/production.yaml" "$tmpdir/production.yaml" + cp -af "$final_path/config/production.yaml" "$tmpdir/production.yaml" if [ -s "$final_path/config/local-production.json" ] then - cp -a "$final_path/config/local-production.json" "$tmpdir/local-production.json" + cp -af "$final_path/config/local-production.json" "$tmpdir/local-production.json" fi # Remove the app directory securely @@ -156,11 +156,11 @@ then ynh_setup_source --dest_dir="$final_path" #Copy the admin saved settings from tmp directory to final path - cp -a "$tmpdir/production.yaml" "$final_path/config/production.yaml" + cp -af "$tmpdir/production.yaml" "$final_path/config/production.yaml" if [ -s "$tmpdir/local-production.json" ] then - cp -a "$tmpdir/local-production.json" "$final_path/config/local-production.json" + cp -af "$tmpdir/local-production.json" "$final_path/config/local-production.json" else cp ../conf/local-production.json "$final_path/config/local-production.json" fi