mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Closes #19208: Ignore beta releases when fetching latest release tag
This commit is contained in:
parent
c73cc0a36a
commit
918470a2bb
@ -124,17 +124,19 @@ sudo cp /opt/netbox-$OLDVER/gunicorn.py /opt/netbox/
|
|||||||
|
|
||||||
### Option B: Check Out a Git Release
|
### 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 `git` commands:
|
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:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo git fetch --tags
|
git ls-remote --tags https://github.com/netbox-community/netbox.git \
|
||||||
git describe --tags $(git rev-list --tags --max-count=1)
|
| grep -o 'refs/tags/v[0-9]*\.[0-9]*\.[0-9]*$' \
|
||||||
|
| tail -n 1 \
|
||||||
|
| sed 's|refs/tags/||'
|
||||||
```
|
```
|
||||||
|
|
||||||
Check out the desired release by specifying its tag:
|
Check out the desired release by specifying its tag. For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo git checkout v4.2.0
|
sudo git checkout v4.2.7
|
||||||
```
|
```
|
||||||
|
|
||||||
## 4. Run the Upgrade Script
|
## 4. Run the Upgrade Script
|
||||||
|
Loading…
Reference in New Issue
Block a user