Calibre Server initialize user(s)
I'm setting up calibre-server with authentication enabled to run inside a docker container. My problem is how to initialize the user database programmatically before launching the normal server.
I've tried putting the responses to the --manage-users prompts in a file, but that doesn't work for the passwords. It really wants an attached tty to do it.
I'd like to allow the user to launch the docker container and pass in username and password values as environment variables. And then I'd run a script inside the container to init the db and then start the server. If the db is already initialized, I'd skip running the --manage-users function again.
I'm open to any ideas.
Thanks!
|