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

**URL:** <https://meta.discourse.org/t/how-to-upgrade-if-var-discourse-has-only-shared-and-is-not-git-repo/157982>\
**Category:** Product Support\
**Created:** [16 ביולי,‏ 2020,‏ 9:50pm UTC](https://meta.discourse.org/t/how-to-upgrade-if-var-discourse-has-only-shared-and-is-not-git-repo/157982 "2020-07-16T21:50:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ulysses4ever](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ulysses4ever/32/122522_2.png) [@ulysses4ever](https://meta.discourse.org/u/ulysses4ever)\
**Post date:** [16 ביולי,‏ 2020,‏ 9:50pm UTC](https://meta.discourse.org/t/how-to-upgrade-if-var-discourse-has-only-shared-and-is-not-git-repo/157982/1 "2020-07-16T21:50:41Z")

</div>

Dear all,

I have a Discourse instance setup by the previous admin on our department web server. I don’t know much about Discourse, but it requires updating and suggests doing

```plaintext
        cd /var/discourse
        git pull
        ./launcher rebuild app

```

But when I `cd` into `/var/discourse` I see only the `shared` directory in there, and `git pull` fails accordingly (it’s not a git repository). What should I do?

---

_[View the full topic](https://meta.discourse.org/t/how-to-upgrade-if-var-discourse-has-only-shared-and-is-not-git-repo/157982)._
