Explorar el Código

Fix upgrade.sh to show virtualenv warning only when needed

Jeremy Stretch hace 6 años
padre
commit
b22bf0c4b0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      upgrade.sh

+ 1 - 1
upgrade.sh

@@ -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"