Package: ikiwiki
Version: stable
Severity: wishlist
X-Debbugs-Cc: eingousef+debb...@rhizogen.es.eu.org

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,


-- System Information:
Debian Release: 12.0
  APT prefers stable-updates
  APT policy: (980, 'stable-updates'), (980, 'stable'), (500, 
'oldstable-updates'), (500, 'oldstable-security'), (500, 
'oldoldstable-updates'), (500, 'oldoldstable'), (500, 'oldstable'), (90, 
'experimental'), (90, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-9-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: OpenRC (via /run/openrc), PID 1: init
LSM: AppArmor: enabled

Versions of packages ikiwiki depends on:
ii  libhtml-parser-perl             3.81-1
pn  libhtml-scrubber-perl           <none>
pn  libhtml-template-perl           <none>
ii  libjson-perl                    4.10000-1
ii  libmarkdown2                    2.2.7-2
ii  libtext-markdown-discount-perl  0.16-1
ii  liburi-perl                     5.17-1
ii  libyaml-libyaml-perl            0.86+ds-1
ii  perl                            5.36.0-7

Versions of packages ikiwiki recommends:
ii  clang-13 [c-compiler]        1:13.0.1-11+b2
ii  clang-14 [c-compiler]        1:14.0.6-12
ii  darcs                        2.16.5-1
ii  gcc [c-compiler]             4:12.2.0-3
ii  gcc-10 [c-compiler]          10.4.0-7
ii  gcc-11 [c-compiler]          11.3.0-12
ii  gcc-12 [c-compiler]          12.2.0-14
ii  gcc-9 [c-compiler]           9.3.0-22
ii  git [git-core]               1:2.39.2-1.1
ii  git-core                     1:2.11.0-3+deb9u7
pn  libauthen-passphrase-perl    <none>
ii  libc6-dev [libc-dev]         2.36-9
pn  libcgi-formbuilder-perl      <none>
ii  libcgi-pm-perl               4.55-1
pn  libcgi-session-perl          <none>
ii  libcrypt-ssleay-perl         0.73.06-2+b1
pn  libgravatar-url-perl         <none>
pn  liblwpx-paranoidagent-perl   <none>
ii  libmail-sendmail-perl        0.80-3
pn  libnet-openid-consumer-perl  <none>
pn  librpc-xml-perl              <none>
pn  libterm-readline-gnu-perl    <none>
ii  libtimedate-perl             2.3300-2
ii  libxml-simple-perl           2.25-2
ii  mercurial                    6.3.2-1
ii  subversion                   1.14.2-4+b2

Versions of packages ikiwiki suggests:
pn  dvipng                             <none>
ii  file                               1:5.44-3
ii  gettext                            0.21-12
ii  ghostscript                        10.0.0~dfsg-11
ii  graphviz                           2.42.2-7+b3
ii  libfile-mimeinfo-perl              0.33-1
pn  libhighlight-perl                  <none>
ii  libhtml-tree-perl                  5.07-3
pn  libimage-magick-perl | perlmagick  <none>
ii  liblocale-gettext-perl             1.07-5
pn  libmagickcore-extra                <none>
ii  libmailtools-perl                  2.21-2
pn  libnet-amazon-s3-perl              <none>
pn  libnet-inet6glue-perl              <none>
pn  libsearch-xapian-perl              <none>
ii  libsort-naturally-perl             1.03-4
pn  libsparkline-php                   <none>
ii  libtext-csv-perl                   2.02-2
pn  libtext-multimarkdown-perl         <none>
pn  libtext-textile-perl               <none>
pn  libtext-typography-perl            <none>
pn  libtext-wikicreole-perl            <none>
pn  libtext-wikiformat-perl            <none>
pn  libxml-feed-perl                   <none>
ii  libxml-writer-perl                 0.900-2
pn  po4a                               <none>
pn  polygen                            <none>
ii  python3                            3.11.2-1+b1
ii  python3-docutils                   0.19+dfsg-6
pn  texlive                            <none>
pn  tidy                               <none>
pn  viewvc | gitweb | viewcvs          <none>
pn  xapian-omega                       <none>

Reply via email to