From 2864f13dbec86ca76dc6eccc7f3ae00dd516458f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 12 Feb 2019 09:22:50 +0100 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 69e3ea3..eba2803 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -107,7 +107,10 @@ ynh_print_info "Download, check and unpack source" # Download, check integrity, uncompress and patch the source from app.src #ynh_setup_source "$final_path/$app" -( cd $final_path/$app && git pull --quiet ) +pushd $final_path/$app + git reset --hard + git pull --quiet +popd #================================================= # NGINX CONFIGURATION