From 9ba053ff8dc373b27ea969265102af9ba8ad02b5 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Thu, 22 Jun 2017 19:26:33 +0000 Subject: [PATCH] Bug 14533: Make --use-db display a message if no DB defined Signed-off-by: Lee Jamison Signed-off-by: Tomas Cohen Arazi --- debian/scripts/koha-create | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 4e9aa40..68c7dcd 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -556,6 +556,19 @@ name="$1" set_upload_path $name +if [ "$op" = use ] && [ "$CLO_DATABASE" = "" ] && + ( [ ! -f "$PASSWDFILE" ] || [ ! `cat $PASSWDFILE | grep "^$name:"` ] ) +then + cat <