Update install.sh
This commit is contained in:
parent
e1858b60a8
commit
fc89d1d713
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user