mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
rewrite upgrade guide to distinguish between current and new release #13080
This commit is contained in:
parent
bc7678c716
commit
fe070104a9
@ -56,30 +56,33 @@ sudo ln -sfn /opt/netbox-X.Y.Z/ /opt/netbox
|
|||||||
Copy `local_requirements.txt`, `configuration.py`, and `ldap_config.py` (if present) from the current installation to the new version:
|
Copy `local_requirements.txt`, `configuration.py`, and `ldap_config.py` (if present) from the current installation to the new version:
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
sudo cp /opt/netbox-X.Y.Z/local_requirements.txt /opt/netbox/
|
sudo cp /opt/netbox-A.B.C/local_requirements.txt /opt/netbox/
|
||||||
sudo cp /opt/netbox-X.Y.Z/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/
|
sudo cp /opt/netbox-A.B.C/netbox/netbox/configuration.py /opt/netbox/netbox/netbox/
|
||||||
sudo cp /opt/netbox-X.Y.Z/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/
|
sudo cp /opt/netbox-A.B.C/netbox/netbox/ldap_config.py /opt/netbox/netbox/netbox/
|
||||||
```
|
```
|
||||||
|
|
||||||
Be sure to replicate your uploaded media as well. (The exact action necessary will depend on where you choose to store your media, but in general moving or copying the media directory will suffice.)
|
Be sure to replicate your uploaded media as well. (The exact action necessary will depend on where you choose to store your media, but in general moving or copying the media directory will suffice.)
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
sudo cp -pr /opt/netbox-X.Y.Z/netbox/media/ /opt/netbox/netbox/
|
sudo cp -pr /opt/netbox-A.B.C/netbox/media/ /opt/netbox/netbox/
|
||||||
```
|
```
|
||||||
|
|
||||||
Also make sure to copy or link any custom scripts and reports that you've made. Note that if these are stored outside the project root, you will not need to copy them. (Check the `SCRIPTS_ROOT` and `REPORTS_ROOT` parameters in the configuration file above if you're unsure.)
|
Also make sure to copy or link any custom scripts and reports that you've made. Note that if these are stored outside the project root, you will not need to copy them. (Check the `SCRIPTS_ROOT` and `REPORTS_ROOT` parameters in the configuration file above if you're unsure.)
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
sudo cp -r /opt/netbox-X.Y.Z/netbox/scripts /opt/netbox/netbox/
|
sudo cp -r /opt/netbox-A.B.C/netbox/scripts /opt/netbox/netbox/
|
||||||
sudo cp -r /opt/netbox-X.Y.Z/netbox/reports /opt/netbox/netbox/
|
sudo cp -r /opt/netbox-A.B.C/netbox/reports /opt/netbox/netbox/
|
||||||
```
|
```
|
||||||
|
|
||||||
If you followed the original installation guide to set up gunicorn, be sure to copy its configuration as well:
|
If you followed the original installation guide to set up gunicorn, be sure to copy its configuration as well:
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
sudo cp /opt/netbox-X.Y.Z/gunicorn.py /opt/netbox/
|
sudo cp /opt/netbox-A.B.C/gunicorn.py /opt/netbox/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
In this documentation, X.Y.Z represents the version of the new release being installed, while A.B.C represents the version of the current installation from which files are being copied. Make sure to replace X.Y.Z and A.B.C with the appropriate version numbers based on the release you are installing and the current version you have.
|
||||||
|
|
||||||
### Option B: Clone the Git Repository
|
### Option B: Clone the Git Repository
|
||||||
|
|
||||||
This guide assumes that NetBox is installed at `/opt/netbox`. Pull down the most recent iteration of the master branch:
|
This guide assumes that NetBox is installed at `/opt/netbox`. Pull down the most recent iteration of the master branch:
|
||||||
|
Loading…
Reference in New Issue
Block a user