Bugzilla – Attachment 68851 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.11 KB, created by
Mark Tompsett
on 2017-10-31 02:29:46 UTC
(
hide
)
Description:
Bug 19547: Deal with --create-db missing debian.cnf issue
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-10-31 02:29:46 UTC
Size:
1.11 KB
patch
obsolete
>From 6d590fd6dc6ac7bba4b0479bd50e0fc5a24f8eb9 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 > >--- > 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 9902f8e..6bf3b41 100755 >--- a/debian/scripts/koha-create >+++ b/debian/scripts/koha-create >@@ -691,7 +691,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