From 7fea8f2fb1a57c723dcd65870e2a99c573880a9e Mon Sep 17 00:00:00 2001 From: Richard de Vos Date: Sun, 8 Nov 2020 22:53:36 +0100 Subject: [PATCH] fix path to manage.py, so that netbox admin user is created. --- root/etc/cont-init.d/50-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/cont-init.d/50-config b/root/etc/cont-init.d/50-config index 73bdaa9..7bace44 100644 --- a/root/etc/cont-init.d/50-config +++ b/root/etc/cont-init.d/50-config @@ -46,7 +46,7 @@ s6-setuidgid abc /usr/bin/python3 netbox/manage.py migrate if [ -n "$SUPERUSER_EMAIL" ] && [ -n "$SUPERUSER_PASSWORD" ]; then -cat << EOF | s6-setuidgid abc python3 /app/healthchecks/manage.py shell +cat << EOF | s6-setuidgid abc python3 /app/netbox/netbox/manage.py shell from django.contrib.auth.models import User; username = 'admin';