From bd7bcf8a0b6cb3f33f6b6e2fd16670c1a50e5c17 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Fri, 28 May 2021 13:18:50 -0400 Subject: [PATCH] Fixes #6496: Fix upgrade script when Python installed in nonstandard path --- docs/release-notes/version-2.11.md | 1 + upgrade.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes/version-2.11.md b/docs/release-notes/version-2.11.md index 634e47316..a6e9a51b5 100644 --- a/docs/release-notes/version-2.11.md +++ b/docs/release-notes/version-2.11.md @@ -10,6 +10,7 @@ ### 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 --- diff --git a/upgrade.sh b/upgrade.sh index 648f825a0..bd8a8d2d7 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -15,7 +15,7 @@ else fi # 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}..." eval $COMMAND || { echo "--------------------------------------------------------------------"