Upgrading netbox 3.0.7 -> 3.0.10 on OpenBSD 7.0
This is more a personal reminder than anything else. Also this expects an installation following this guide.
- stop netbox:
rcctl stop netbox
- upgrade source:
cd /var/www/netbox && git pull
- checkout 3.0.10:
git checkout v3.0.10
- adjust upgrade.sh:
diff --git a/upgrade.sh b/upgrade.sh index 67b8aaa89..0d694daf3 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -7,7 +7,7 @@ # Python 3.7 or later. # # cd "$(dirname "$0")" # -VIRTUALENV="$(pwd -P)/venv" # +VIRTUALENV="$(pwd -P)/env" # PYTHON="${PYTHON:-python3}" # # # Remove the existing virtual environment (if any) # @@ -20,7 +20,7 @@ else # fi # # # Create a new virtual environment # -COMMAND="${PYTHON} -m venv ${VIRTUALENV}" # +COMMAND="virtualenv --system-site-packages ${VIRTUALENV}" # echo "Creating a new virtual environment at ${VIRTUALENV}..." # eval $COMMAND || { # echo "--------------------------------------------------------------------"
- run upgrade script:
bash upgrade.sh
- start the service:
rcctl start netbox