View Single Post
Old 11-29-2021, 08:45 AM   #1
siclib
Junior Member
siclib began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2021
Device: BOOX Poke 2
Question Automate Add new users to Server at specific time of the day

I am not sure if this is the place for this topic but I think ill post it here anyway.

As far as I know, calibre-server has to be turned off in order to manage users.
I am using ubuntu and ideally I want to put soon-added members at the end of the day because I dont want to stop the server at middle of the day and cant stay awake midnight also. Is it possible to achieve this with bash script?

Example:
1AM
check if users.txt is empty or not, if not
stop calibre-server
do a while loop to grab users and passwords from users.txt and add to userdb
delete users and passwords
start calibre-server

Thank you very much
siclib is offline   Reply With Quote