View Single Post
Old 08-27-2018, 10:21 AM   #1
stokstral
Junior Member
stokstral began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2018
Device: none
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!
stokstral is offline   Reply With Quote