Dear Maintainer,
Currently there are two ways to setup a wiki :
1. the classic setup ( https://ikiwiki.info/setup/ ) is
user-friendly but no so great if you want to perform the wiki
setup in an automated, idempotent way, and doesn't allow to
install a wiki on an already existing git repository,
2. the setup by hand ( https://ikiwiki.info/setup/byhand/ ) which is
easier to turn into an idempotent task and allows to install a
wiki on an already existing git repo.
The second way, however, is incomplete : the task to add an user (in
particular, the admin of the wiki), which is present in the classic
setup, is absent.
I presume one could register a user automatically with an HTTP
request, but this requires the web server to be set up and the web
frontend of the wiki to actually be accessible before the user is
created.
Would it be possible to have a standalone script to register a user,
similarly to what the classic setup script does ?
The script would take the user name and the user e-mail address as
arguments, possibly the password as well (or prompt for it if you
think it's more secure), and create/modify the .ikiwiki/userdb file
accordingly.
Regards,