From 34587fafecf8e274586715dce2c04b0f557ce313 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 Signed-off-by: Jonathan Druart --- debian/scripts/koha-create | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index a12cafcd67..5dabfa9140 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -559,6 +559,19 @@ name="$1" set_upload_path $name +if [ "$op" = use ] && [ "$CLO_DATABASE" = "" ] && + ( [ ! -f "$PASSWDFILE" ] || [ ! `cat $PASSWDFILE | grep "^$name:"` ] ) +then + cat <