From 5e2e7b2da23a9e76a5ff0f412c453934dddd767e Mon Sep 17 00:00:00 2001 From: Thomas Parisot Date: Tue, 19 Jan 2021 13:03:49 +0100 Subject: [PATCH] No need to secure any source file --- scripts/upgrade | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index cc74b17..2a5a50a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -145,16 +145,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." - # Create a temporary directory - tmpdir="$(mktemp -d)" - - # Backup the config file in the temp dir - cp -a "$final_path/$app/config/prod.secret.exs" "$tmpdir/prod.secret.exs" - - # Remove the app directory securely - ynh_secure_remove --file="$final_path/$app" - - # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path/$app" fi