Bugzilla – Attachment 72346 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.42 KB, created by
Marcel de Rooy
on 2018-03-02 08:03:20 UTC
(
hide
)
Description:
Bug 19547: Deal with --create-db missing debian.cnf issue
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-03-02 08:03:20 UTC
Size:
1.42 KB
patch
obsolete
>From 2ac63aecde4b852165b3db9f12612b8ba02ed172 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 >Content-Type: text/plain; charset=utf-8 > >Followed test plan. Patch functions as described and both commands execute. >Signed-off-by: Dilan Johnpullé <dilan@calyx.net.au> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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