mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Improved verbosity of upgrade script
This commit is contained in:
13
upgrade.sh
13
upgrade.sh
@ -20,7 +20,8 @@ echo "Creating a new virtual environment at ${VIRTUALENV}..."
|
||||
eval $COMMAND || {
|
||||
echo "--------------------------------------------------------------------"
|
||||
echo "ERROR: Failed to create the virtual environment. Check that you have"
|
||||
echo "the required system packages installed."
|
||||
echo "the required system packages installed and the following path is"
|
||||
echo "writable: ${VIRTUALENV}"
|
||||
echo "--------------------------------------------------------------------"
|
||||
exit 1
|
||||
}
|
||||
@ -62,9 +63,13 @@ if [ 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"
|
||||
echo "executables."
|
||||
echo " Python: ${VIRTUALENV}/bin/python"
|
||||
echo " gunicorn: ${VIRTUALENV}/bin/gunicorn"
|
||||
echo "Python and gunicorn executables."
|
||||
echo ""
|
||||
echo "netbox.service ExecStart:"
|
||||
echo " ${VIRTUALENV}/bin/gunicorn"
|
||||
echo ""
|
||||
echo "netbox-rq.service ExecStart:"
|
||||
echo " ${VIRTUALENV}/bin/python"
|
||||
echo "--------------------------------------------------------------------"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user