From 3c5b00e8699b375c4e622b954081fe0bc7143fc4 Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:06:12 +0100 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index b6f1812..df37377 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -78,6 +78,9 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" --keep=".env" pushd "$final_path" + git checkout production + git pull --quiet + git checkout $COMMIT ./bw-dev update popd