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
|