]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Apply patch from Aaron S. Joyner to improve user friendliness of database build script
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 27 Jul 2008 19:04:17 +0000 (19:04 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 27 Jul 2008 19:04:17 +0000 (19:04 +0000)
commit88643d65fec0d24ba17fea488c59ed559c41d2f9
tree4990719e59d4d0838f926f28c1aee5910afbcf24
parent68132939f86df9f5e4c04afe0756d2817ad5f831
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
Open-ILS/src/Makefile
Open-ILS/src/extras/import/build-oils-db.sh
Open-ILS/src/sql/Pg/build-db.sh
config.sh
install.conf.default
install.sh