commit
4fee1e3bf3
@ -31,7 +31,7 @@ fi
|
||||
|
||||
echo "💡 Username: ${SUPERUSER_NAME}, E-Mail: ${SUPERUSER_EMAIL}"
|
||||
|
||||
./manage.py shell --plain << END
|
||||
./manage.py shell --interface python << END
|
||||
from django.contrib.auth.models import User
|
||||
from users.models import Token
|
||||
if not User.objects.filter(username='${SUPERUSER_NAME}'):
|
||||
@ -41,7 +41,7 @@ END
|
||||
|
||||
for script in /opt/netbox/startup_scripts/*.py; do
|
||||
echo "⚙️ Executing '$script'"
|
||||
./manage.py shell --plain < "${script}"
|
||||
./manage.py shell --interface python < "${script}"
|
||||
done
|
||||
|
||||
# copy static files
|
||||
|
Loading…
Reference in New Issue
Block a user