Bugzilla – Attachment 72283 Details for
Bug 19547
Maria DB doesn't have a debian.cnf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19547: Deal with --create-db missing debian.cnf issue
Bug-19547-Deal-with---create-db-missing-debiancnf-.patch (text/plain), 1.33 KB, created by
Dilan Johnpullé
on 2018-02-28 01:55:27 UTC
(
hide
)
Description:
Bug 19547: Deal with --create-db missing debian.cnf issue
Filename:
MIME Type:
Creator:
Dilan Johnpullé
Created:
2018-02-28 01:55:27 UTC
Size:
1.33 KB
patch
obsolete
>From 4c0f299551b450ad9dc917dccb954cf0538a5901 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Tue, 31 Oct 2017 02:28:58 +0000 >Subject: [PATCH] Bug 19547: Deal with --create-db missing debian.cnf issue >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Followed test plan. Patch functions as described and both commands execute. >Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au> >--- > debian/scripts/koha-create | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create >index 1312ee3..cdfa63d 100755 >--- a/debian/scripts/koha-create >+++ b/debian/scripts/koha-create >@@ -706,7 +706,13 @@ then > # Set up MySQL database for this instance. > if [ "$op" = create ] > then >- mysql --defaults-extra-file=/etc/mysql/koha-common.cnf <<eof >+ if [ ! -e /etc/mysql/debian.cnf ]; then >+ MYSQL_OPTIONS="-u root" >+ echo "WARNING: The koha-common.cnf file is a dead soft link!" >+ else >+ MYSQL_OPTIONS="--defaults-extra-file=/etc/mysql/koha-common.cnf" >+ fi >+ mysql $MYSQL_OPTIONS <<eof > CREATE DATABASE \`$mysqldb\`; > CREATE USER \`$mysqluser\`@'$mysql_hostname' IDENTIFIED BY '$mysqlpwd'; > CREATE USER \`$mysqluser\`@'%' IDENTIFIED BY '$mysqlpwd'; >-- >2.1.4
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 19547
:
68850
|
68851
|
72283
|
72345
|
72346