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 }