From 83dc65acb51d9ba0d8e9682c75716f227e78cb25 Mon Sep 17 00:00:00 2001 From: larsen0815 Date: Fri, 16 May 2025 12:19:07 +0200 Subject: [PATCH] Improve upgrade instructions --- docs/installation/upgrading.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/installation/upgrading.md b/docs/installation/upgrading.md index f9a7a3189..84b133c4f 100644 --- a/docs/installation/upgrading.md +++ b/docs/installation/upgrading.md @@ -122,7 +122,7 @@ sudo cp /opt/netbox-$OLDVER/gunicorn.py /opt/netbox/ ### Option B: Check Out a Git Release -This guide assumes that NetBox is installed at `/opt/netbox`. First, determine the latest release either by visiting our [releases page](https://github.com/netbox-community/netbox/releases) or by running the following command: +This guide assumes that NetBox is installed in `/opt/netbox`. First, determine the latest release either by visiting our [releases page](https://github.com/netbox-community/netbox/releases) or by running the following command: ``` git ls-remote --tags https://github.com/netbox-community/netbox.git \ @@ -134,7 +134,9 @@ git ls-remote --tags https://github.com/netbox-community/netbox.git \ Check out the desired release by specifying its tag. For example: ``` -sudo git checkout v4.2.7 +cd /opt/netbox && \ +sudo git fetch && \ +sudo git checkout v2.4.7 ``` ## 4. Run the Upgrade Script