Replies: 2 comments 5 replies
-
Have a look at how netbox-docker creates the superuser: |
Beta Was this translation helpful? Give feedback.
2 replies
-
There's now a source /opt/netbox/venv/bin/activate
DJANGO_SUPERUSER_PASSWORD=<password> python3 /opt/netbox/netbox/manage.py createsuperuser --no-input --username <username> --email <email> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to automate the netbox installation with bash shell for linux server. And i have a problem with superuser creation.
The lines to do this action are:
The manage.py script is interactive and ask you for those information:
To interact with a program I tried some tips like or EOF or printf to give it the answers as arguments , for example:
printf "root\ncontact@local.com\npassword123\npassword123\n" | python3 /opt/netbox/netbox/manage.py createsuperuser
But i get this error message:
Superuser creation skipped due to not running in a TTY. You can run manage.py createsuperuser in your project to create one manually.
Is there any tips to create the superuser without using TTY Terminal ?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions