Print NetBox version in upgrade.sh

This commit is contained in:
Markku Leiniö 2023-12-21 08:24:48 +02:00
parent 12beac4f1a
commit 9a6724c36e

View File

@ -7,6 +7,10 @@
# Python 3.8 or later. # Python 3.8 or later.
cd "$(dirname "$0")" cd "$(dirname "$0")"
NETBOX_VERSION="$(grep ^VERSION netbox/netbox/settings.py | cut -d\' -f2)"
echo "You are installing (or upgrading to) NetBox version ${NETBOX_VERSION}"
VIRTUALENV="$(pwd -P)/venv" VIRTUALENV="$(pwd -P)/venv"
PYTHON="${PYTHON:-python3}" PYTHON="${PYTHON:-python3}"