From cb37e3ba92db4cc3d323f01d47997510839ba589 Mon Sep 17 00:00:00 2001 From: Stefan Schlesinger Date: Tue, 24 Jul 2018 10:56:46 +0200 Subject: [PATCH] Update docker-entrypoint.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make netbox-docker function with v2.4-beta1 again, fixes #84. > The shell --plain option is deprecated in favor of -i python or --interface python. > The shell --interface option now accepts python to force use of the “plain” Python interpreter. https://docs.djangoproject.com/en/2.0/releases/1.10/#deprecated-features-1-10 --- docker/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index a921bd9..4cef815 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -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