From 8b32870ac016312b1809fca26b4d04b28ea5fcf3 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 This attempts to handle issues arising when running koha-create on a system that never had MySQL installed. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- debian/scripts/koha-create | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 3f85cb2eea..1312ee3841 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.39.5