1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix upgrade.sh to show virtualenv warning only when needed

This commit is contained in:
Jeremy Stretch
2020-03-06 15:07:29 -05:00
parent 17c76e413d
commit b22bf0c4b0

@ -64,7 +64,7 @@ COMMAND="python3 netbox/manage.py invalidate all"
echo "Clearing cache data ($COMMAND)..."
eval $COMMAND || exit 1
if [ WARN_MISSING_VENV ]; then
if [ -v WARN_MISSING_VENV ]; then
echo "--------------------------------------------------------------------"
echo "WARNING: No existing virtual environment was detected. A new one has"
echo "been created. Update your systemd service files to reflect the new"