diff --git a/scripts/upgrade b/scripts/upgrade index 8137857..97b7a89 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,7 +100,10 @@ path_url=$(ynh_normalize_url_path $path_url) # Download, check integrity, uncompress and patch the source from app.src #ynh_setup_source "$final_path" -( cd $final_path/$app && git pull --quiet ) +pushd $final_path/$app + git reset --hard + git pull --quiet +popd #================================================= # NGINX CONFIGURATION