From c417b5ded6b243626da8474b9236a7c99792e193 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 2 Oct 2022 00:47:07 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 7d83e59..00ff785 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -112,8 +112,8 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --keep="config/secrets.yml config/database.yml" - cp "$tmpdir/secrets.yml" "$final_path/config/database.yml" - cp "$tmpdir/database.yml" "$final_path/config/database.yml" + cp -f "$tmpdir/secrets.yml" "$final_path/config/database.yml" + cp -f "$tmpdir/database.yml" "$final_path/config/database.yml" ynh_secure_remove --file="$tmpdir" fi