Bugzilla – Attachment 188434 Details for
Bug 41099
koha-mysql doesn't work out of the box on Debian 13
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41099: Make `koha-mysql` disable SSL if required
cea9a8f.patch (text/plain), 1.53 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-10-24 18:57:18 UTC
(
hide
)
Description:
Bug 41099: Make `koha-mysql` disable SSL if required
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-10-24 18:57:18 UTC
Size:
1.53 KB
patch
obsolete
>From cea9a8f908fb2ea6393614fdc021a22e3dff8c20 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= <tomascohen@theke.io> >Date: Fri, 24 Oct 2025 15:49:40 -0300 >Subject: [PATCH] Bug 41099: Make `koha-mysql` disable SSL if required >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Now that Debian 13 (and Ubuntu 25.04) set `ssl=on` by default, we should >make the `koha-mysql` helper script disable it by default if not >configured. > >This patch does that. > >To test: >1. Run: > $ ktd --shell > k$ koha-mysql kohadev >=> SUCCESS: You get into the DB shell >2. Apply this patch >3. Run: > k$ debian/scripts/koha-mysql kohadev >=> SUCCESS: It works as step 1! >4. Make sure you enable SSL in my.cnf: > >[client] >ssl = on > >5. Repeat 1 >=> FAIL: You get an error about SSL in the server being disabled >6. Repeat 4 >=> SUCCESS: The patch fixes it! >7. This steps imply we reproduced the issue, and it gets fixed, while > keeping the current behavior. >8. Sign off :-D > >Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> >--- > debian/scripts/koha-mysql | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/debian/scripts/koha-mysql b/debian/scripts/koha-mysql >index d59e13061ca..4721c3d1583 100755 >--- a/debian/scripts/koha-mysql >+++ b/debian/scripts/koha-mysql >@@ -74,6 +74,8 @@ if [ "$mysqltls" = "yes" ]; then > if [ -n "$mysqlkey" ] && [ "$mysqlkey" != "__DB_TLS_CLIENT_KEY__" ]; then > set -- --ssl-key="$mysqlkey" "$@" > fi >+else >+ set -- --skip-ssl "$@" > fi > > if [ "$mysqltz" != "" ]; then >-- >2.51.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41099
:
188434
|
188493
|
188495