library: run bootstrap via runuser, keep mpm_itk, add SETUID/SETGID caps

- koha-shell -c wraps the command in single quotes, which broke the env
  assignments; use runuser + env instead and verify tables were created
- koha-create requires mpm_itk, so keep it and grant the caps it needs
- stop any Apache started by koha-create before running it in foreground

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013wi3ZSot4XbUViwRFgLpRf
This commit is contained in:
Claude
2026-11-06 06:29:27 +00:00
parent 7244cfd918
commit a15478b382
2 changed files with 18 additions and 1 deletions
+4
View File
@@ -37,6 +37,10 @@ services:
KOHA_ADMIN_USER: ${ADMIN_USER:-admin}
KOHA_ADMIN_PASS: ${ADMIN_PASSWORD}
KOHA_LIBRARY_NAME: ${LIBRARY_NAME:-My Library}
# Koha's Apache uses mpm_itk, which switches users per request.
cap_add:
- SETUID
- SETGID
ports:
- "${OPAC_PORT:-8080}:80"
- "${STAFF_PORT:-8081}:8081"