[Koha-bugs] [Bug 15088] Notice when koha has been installed with --request-db instead of --create-db
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Feb 17 15:59:29 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15088
M. Tompsett <mtompset at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #44347|0 |1
is obsolete| |
--- Comment #8 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 48186
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48186&action=edit
[SIGNED-OFF] Bug 15088 - notice when koha has been installed with --request-db
instead of --create-db
Patch does 2 major things -
* creates an options file during koha-create that lets us know what database
option was used when the instance was created
/etc/koha/sites/$name/createoptions
* when an instance is removed, we assume we can do things to the database, per
usual. If we have a createoptions, we'll read it and find out if our instance
was created with create-db or request-db.
If it was requested, we don't do anything with the database because we assume
we don't have rights to, and print a message.
If it was created, we do the same thing we've always done - remove the database
and users (unless we've specified --keep-mysql)
To test:
create a throwaway instance with --create-db
remove that instance, all should happen as normal.
your instance should have an /etc/koha/sites/$name/createoptions file with
REQUEST_DB=0 in it.
create another throwaway instance with --request-db
remove that instance, you should see a message alerting you to the fact that
you may still have database work to do after Koha is removed.
your instance should have an /etc/koha/sites/$name/createoptions file with
REQUEST_DB=1 in it.
NOTE: Only works in conjuction with my patch.
Signed-off-by: Mark Tompsett <mtompset at hotmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list