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