From e9837b08b22e7c658e40d04e7c6c358edd78e295 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Thu, 22 Jun 2017 22:40:29 +0000 Subject: [PATCH] Bug 18564: MariaDB doesn't have a debian.cnf file The koha-common.cnf file is a link to debian.cnf, which MariaDB does not install. This just forces a 'localhost' return value. --- debian/scripts/koha-create | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 503f365..810ad2b 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -122,6 +122,12 @@ generate_config_file() { } getmysqlhost() { + if [ ! -f /etc/mysql/debian.cnf ] + then + echo localhost + return + fi + awk ' BEGIN { FS="=" } $1 ~/\[/ { inclient=0 } -- 2.1.4