Explorar o código

Print NetBox version in upgrade.sh (#14547)

Markku Leiniö %!s(int64=2) %!d(string=hai) anos
pai
achega
c1cf037eaf
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      upgrade.sh

+ 4 - 0
upgrade.sh

@@ -7,6 +7,10 @@
 # Python 3.8 or later.
 
 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"
 PYTHON="${PYTHON:-python3}"