From 751abce85222e9e859a2ee40ce8dd98d54f93e5c Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Mon, 30 Oct 2017 17:59:43 -0400 Subject: [PATCH] Bug 19547: MariaDB install has no debian.cnf Content-Type: text/plain; charset=utf-8 This attempts to handle issues arising when running koha-create on a system that never had MySQL installed. Signed-off-by: Marcel de Rooy --- debian/scripts/koha-create | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 3f85cb2..1312ee3 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -126,6 +126,11 @@ generate_config_file() { } getmysqlhost() { + if [ ! -f /etc/mysql/debian.cnf ] + then + echo localhost + return + fi awk ' BEGIN { FS="=" } $1 ~/\[/ { inclient=0 } -- 2.1.4