diff --git a/netbox/install.sh b/netbox/install.sh index 4259287..6b02219 100644 --- a/netbox/install.sh +++ b/netbox/install.sh @@ -21,8 +21,8 @@ python3 --version # Prompt user to confirm if the currently installed Python version meets the minimum requirements read -p "Does the installed Python version meet the minimum requirements of Python 3.8, 3.9, 3.10 or 3.11.? (y/n): " PYTHON_CONFIRM if [[ $PYTHON_CONFIRM != "y" ]]; then - echo "Please install the required version of Python and rerun this script." - exit 1 + echo "Minimum Python version requirement confirmed!" + exit 0 fi # Check other system requirements @@ -153,6 +153,10 @@ if [ -n "$PLUGIN_NAMES" ]; then done fi +# Prompt user to create a new superuser +echo "Please create a new superuser for Netbox:" +sudo -u netbox /opt/netbox/manage.py createsuperuser + # Set file and directory permissions echo "Setting file permissions..." chown -R netbox:netbox /opt/netbox/netbox/media