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 || {
|
eval $COMMAND || {
|
||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
echo "ERROR: Failed to create the virtual environment. Check that you have"
|
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 "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@ -62,9 +63,13 @@ if [ WARN_MISSING_VENV ]; then
|
|||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
echo "WARNING: No existing virtual environment was detected. A new one has"
|
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 "been created. Update your systemd service files to reflect the new"
|
||||||
echo "executables."
|
echo "Python and gunicorn executables."
|
||||||
echo " Python: ${VIRTUALENV}/bin/python"
|
echo ""
|
||||||
echo " gunicorn: ${VIRTUALENV}/bin/gunicorn"
|
echo "netbox.service ExecStart:"
|
||||||
|
echo " ${VIRTUALENV}/bin/gunicorn"
|
||||||
|
echo ""
|
||||||
|
echo "netbox-rq.service ExecStart:"
|
||||||
|
echo " ${VIRTUALENV}/bin/python"
|
||||||
echo "--------------------------------------------------------------------"
|
echo "--------------------------------------------------------------------"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user