From 07538bfc8abae33d33b07b24cf945f5f1eea0817 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Wed, 17 Feb 2016 09:13:46 -0500 Subject: [PATCH] Bug 15088 - Follow for koha-create Logic in the koha-create was requiring a DEFAULTSQL to trigger. This patch moves it, such that --create-db will be registered all the time. Signed-off-by: Chris Cormack --- debian/scripts/koha-create | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index 2bc1329..16f4eeb 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -767,12 +767,6 @@ SET password = '$staffdigest' WHERE borrowernumber = $ADMINUSER; eof - cat > "/etc/koha/sites/$name/createoptions" << eof -# do not edit this file, it is for record keeping purposes only -REQUEST_DB=0 -eof - - #` echo "staff user password is '$staffpass' but keep that secret" @@ -782,6 +776,17 @@ eof else echo "Koha instance is empty, no staff user created." fi + + if [ "$op" = create ] + then + + cat > "/etc/koha/sites/$name/createoptions" << eof +# do not edit this file, it is for record keeping purposes only +REQUEST_DB=0 +eof + + fi + fi -- 2.1.4