Browse Source

Fixes #6496: Fix upgrade script when Python installed in nonstandard path

jeremystretch 4 years ago
parent
commit
bd7bcf8a0b
2 changed files with 2 additions and 1 deletions
  1. 1 0
      docs/release-notes/version-2.11.md
  2. 1 1
      upgrade.sh

+ 1 - 0
docs/release-notes/version-2.11.md

@@ -10,6 +10,7 @@
 
 
 ### Bug Fixes
 ### Bug Fixes
 
 
+* [#6496](https://github.com/netbox-community/netbox/issues/6496) - Fix upgrade script when Python installed in nonstandard path
 * [#6502](https://github.com/netbox-community/netbox/issues/6502) - Correct permissions evaluation for running a report via the REST API
 * [#6502](https://github.com/netbox-community/netbox/issues/6502) - Correct permissions evaluation for running a report via the REST API
 
 
 ---
 ---

+ 1 - 1
upgrade.sh

@@ -15,7 +15,7 @@ else
 fi
 fi
 
 
 # Create a new virtual environment
 # Create a new virtual environment
-COMMAND="/usr/bin/python3 -m venv ${VIRTUALENV}"
+COMMAND="python3 -m venv ${VIRTUALENV}"
 echo "Creating a new virtual environment at ${VIRTUALENV}..."
 echo "Creating a new virtual environment at ${VIRTUALENV}..."
 eval $COMMAND || {
 eval $COMMAND || {
   echo "--------------------------------------------------------------------"
   echo "--------------------------------------------------------------------"