diff --git a/scripts/upgrade b/scripts/upgrade index ee1d44b..0caa80b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,6 +78,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=10 + # Create a temporary directory + tmpdir="$(mktemp -d)" + cp -a "$final_path/config/config.json" "$tmpdir/config.json" # Remove the app directory securely ynh_secure_remove --file=$final_path