v2
v2 copied to clipboard
Unable to create admin user automatically even with CREATE_ADMIN: '1' set
What I did:
I tried to setup miniflux on Kubernetes using the official miniflux container image (latest).
I set CREATE_ADMIN 1
I set RUN_MIGRATIONS 1
I set ADMIN_USER
I set ADMIN_PASSWORD
I started my pod.
I confirmed that the environment contained the above variables by jumping on the container with /bin/sh
What happened: The container enters a crash loop on startup with the following output in the logs: kubectl logs -n miniflux miniflux-8548c4b54-zqmk4 -> Current schema version: 56 -> Latest schema version: 56 This is not a terminal, exiting.
What I expect to happen: The container starts and uses the creds I provided to create the admin user.
Reading through this one more time. I'm guessing because I set ADMIN_USER instead of ADMIN_USERNAME this failed. It would be nice if there was a check for the VARS if they aren't set but CREATE_ADMIN is set.
Draft Fix: https://github.com/miniflux/v2/compare/master...dwarf-king-hreidmar:v2:patch-1