Skip to content

Commit

Permalink
Merge pull request #4 from foxhunt72/fix_admin_user
Browse files Browse the repository at this point in the history
fix path to manage.py in root/etc/cont-init.d/50-config, so that netbox admin user is created.
  • Loading branch information
alex-phillips authored Nov 8, 2020
2 parents f0a3f77 + 7fea8f2 commit 9396a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 9396a32

Please sign in to comment.