Advertisement
goezler

NETBOX Upgrade

Feb 23rd, 2022
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. wget https://github.com/netbox-community/netbox/archive/refs/tags/v3.1.8.tar.gz
  2. sudo tar -xzf v3.1.8.tar.gz -C /opt
  3. sudo ln -sfn /opt/netbox-3.1.8/ /opt/netbox
  4.  
  5. sudo cp /opt/netbox-2.11.9/netbox/netbox/configuration.py /opt/netbox/netbox/netbox
  6. sudo cp -pr /opt/netbox-2.11.9/netbox/media/ /opt/netbox-3.1.8/netbox/netbox
  7.  
  8. sudo cp -r /opt/netbox-2.11.9/netbox/scripts /opt/netbox/netbox/
  9. sudo cp -r /opt/netbox-2.11.9/netbox/reports /opt/netbox/netbox/
  10.  
  11. sudo cp /opt/netbox-2.11.9/gunicorn.py /opt/netbox/
  12.  
  13. cd opt/netbox
  14. sudo ./upgrade.sh
  15. sudo systemctl restart netbox netbox-rq
  16. sudo ln -s /opt/netbox/contrib/netbox-housekeeping.sh /etc/cron.daily/netbox-housekeeping
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement