How to upgrade if `/var/discourse` has only `shared` and is not git repo

Oh my…that’s from late mid 2018. You definitely want to update. Besides missing numerous great features, there have been quite a few, including some critical, security fixes that you do not have.