From 8add1d4a2173461268d516e58ef3045b0504a2c9 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. --- 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 ef6891f..21f7374 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -687,12 +687,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" @@ -702,6 +696,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