Koha/debian
Jonathan Druart d2d94b2de0 Bug 34204: Fix koha-shell under debian 12
In Debian 12/Bookworm:
root@kohadevbox:koha$ koha-shell kohadev
This account is currently not available.

This is because /etc/passwd has /usr/sbin/nologin as shell, which is coming from the --disabled-login param we passed to adduser in koha-create.

Looks like a bug has been fixed in adduser, because we didn't have this behavior in bullseye.

Context:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625758#72

"""
- change and document (adduser(8)) that --disabled-password will behave
  like --disabled-login and additionally set the shell to
  /usr/sbin/nologin.
"""
427ade7d91

Test plan:
Confirm the above and that the change makes sense.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 1c03352ae5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit c3d30dc4e8)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
2023-11-13 14:03:00 +00:00
..
docs Bug 31964: add a man page for koha-z3950-responder 2023-09-08 09:22:47 +00:00
scripts Bug 34204: Fix koha-shell under debian 12 2023-11-13 14:03:00 +00:00
source Bug 32994: Remove compiled files from src (2) 2023-02-24 11:34:01 +00:00
templates Bug 30843: Add mfa_range configuration option for TOTP 2023-10-17 16:56:21 +00:00
bd-to-depends
build-git-snapshot Bug 33629: allow pbuilder to use network via build-git-snapshot 2023-05-11 11:58:04 +01:00
changelog Bug 32666: Buildbot 22.11.01 for stretch: update debian/changelog 2023-01-20 13:39:44 +00:00
clean Bug 32994: Remove compiled files from src (2) 2023-02-24 11:34:01 +00:00
compat
control Bug 32666: Update control file: 22.11.01 on deb9 (7411fce6) 2023-01-20 13:43:32 +00:00
control.in Bug 27315: use the namespace-aware docbook stylesheet 2022-10-17 21:10:06 -03:00
copyright
koha-common.bash-completion Bug 33108: Teach koha-list filter elasticsearch 2023-05-03 13:11:15 +01:00
koha-common.config
koha-common.cron.d
koha-common.cron.daily Bug 19532: (QA follow-up) Add the cron jobs to the cron files 2022-03-14 22:45:52 -10:00
koha-common.cron.hourly Bug 23207: Add automatic checkin feature 2021-04-22 11:11:05 +02:00
koha-common.cron.monthly
koha-common.default
koha-common.dirs
koha-common.docs
koha-common.init Bug 33108: (follow-up) Don't let restart die if ES indexer not running 2023-05-03 13:11:15 +01:00
koha-common.install Bug 33108: koha-es-indexer added 2023-05-03 13:11:14 +01:00
koha-common.links
koha-common.logrotate
koha-common.postinst Bug 32612: (QA follow-up) Remove more unneeded appender lines 2023-02-06 15:54:49 +00:00
koha-common.preinst
koha-common.README.Debian
koha-common.service Bug 33371: Add [Install] section to koha-common.service 2023-06-08 16:59:56 +00:00
koha-common.templates
koha-core.bash-completion Bug 33108: Teach koha-list filter elasticsearch 2023-05-03 13:11:15 +01:00
koha-core.config
koha-core.default
koha-core.dirs
koha-core.docs
koha-core.init Bug 32922: (follow-up) Fix two additional occurences 2023-02-24 07:51:48 +00:00
koha-core.install Bug 33108: koha-es-indexer added 2023-05-03 13:11:14 +01:00
koha-core.links
koha-core.logrotate
koha-core.postinst Bug 32612: (QA follow-up) Remove more unneeded appender lines 2023-02-06 15:54:49 +00:00
koha-core.preinst
koha-core.templates
koha-full.postinst
koha-post-install-setup
koha.apache-ports
koha.config
koha.dirs
koha.install
koha.postinst
koha.postrm
koha.prerm
koha.README.Debian
list-deps Bug 29882: remove unrequired package definitions in list-deps script 2022-09-07 13:17:59 -07:00
README.build
rules Bug 33168: (follow-up) Swap spaces for tabs 2023-04-16 18:11:54 +01:00
unavailable.html
update-control

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.