mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-13 16:47:34 -06:00
Improved formatting of upgrade script messages
This commit is contained in:
parent
64c9bf27c1
commit
215dbef7a0
12
upgrade.sh
12
upgrade.sh
@ -18,8 +18,10 @@ fi
|
||||
COMMAND="/usr/bin/python3 -m venv ${VIRTUALENV}"
|
||||
echo "Creating a new virtual environment at ${VIRTUALENV}..."
|
||||
eval $COMMAND || {
|
||||
echo "Failed to create the virtual environment. Check that you have the"
|
||||
echo "required system packages installed."
|
||||
echo "--------------------------------------------------------------------"
|
||||
echo "ERROR: Failed to create the virtual environment. Check that you have"
|
||||
echo "the required system packages installed."
|
||||
echo "--------------------------------------------------------------------"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -52,11 +54,13 @@ echo "Clearing cache data ($COMMAND)..."
|
||||
eval $COMMAND
|
||||
|
||||
if [ WARN_MISSING_VENV ]; then
|
||||
echo "No existing virtual environment was detected. A new one has been"
|
||||
echo "created. Update your systemd service files to reflect the new"
|
||||
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"
|
||||
echo "executables."
|
||||
echo " Python: ${VIRTUALENV}/bin/python"
|
||||
echo " gunicorn: ${VIRTUALENV}/bin/gunicorn"
|
||||
echo "--------------------------------------------------------------------"
|
||||
fi
|
||||
|
||||
echo "Upgrade complete! Don't forget to restart the NetBox services:"
|
||||
|
Loading…
Reference in New Issue
Block a user