Apply patch from Aaron S. Joyner to improve user friendliness of database build script
- validate that the fts-config.sql script exists for the specified database version
- if it does not, detect the latest available version, warn the user, suggest aborting, offer to continue w/ the latest available version
- rework call of psql to avoid PGPASSWORD on the command line, visible via ps
- warn user if psql fails attempting to import any of these files for reasons such as couldn't connect, or file not found (not sql script errors)
- provide commented out option to fail on sql script errors, for future convenience when the scripts run cleanly w/o errors
- limit line length to 80 characters (a nearly unbreakable habit from work)
- remove database version entirely from the user interface, down to build-db.sh. This makes minor removals from:
- install.sh
- config.sh
- install.conf.default
- Open-ILS/src/Makefile
- Open-ILS/src/extras/import/build-oils-db.sh
- implement automatic detection of PostgreSQL database version
- abort if we can not detect the db version, providing the user with our best guess (it's probably not going to be, but oh well)
- maintain fallback in the case of missing fts-config.sql for specific db version, with big shiny warnings adapted to the autodetection
- abort if no fts-config.sql files exist
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
Signed-off-by: Aaron S. Joyner <aaron@joyner.ws>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10156
dcc99617-32d9-48b4-a31d-
7c20da2025e4