mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Fix upgrade.sh to show virtualenv warning only when needed
This commit is contained in:
parent
7fe0cc3b6c
commit
64a35a1b2e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user