diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-03-20 11:51:49 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2015-03-20 11:58:52 +0100 |
commit | d529834d22549b48c54546d1fa463b93a0859025 (patch) | |
tree | 10018c9342c66d18bfef424b7c3485cc25dbc050 /postgresql-check-db-dir.in | |
parent | d95bc9eaaf44776349c05a44d42f3b84e574d936 (diff) | |
download | postgresql-setup-d529834d22549b48c54546d1fa463b93a0859025.tar.gz postgresql-setup-d529834d22549b48c54546d1fa463b93a0859025.tar.xz postgresql-setup-d529834d22549b48c54546d1fa463b93a0859025.zip |
setup: enhance --new-systemd-unitv3.2
Do not left created dropin directory in case of some initdb
failure, or so. This allow user run the same --new-systemd-unit
repeatedly without changing the command-line.
* postgresql-setup.in (exit_handler): New exit callback wrapper.
($cleanup_dropin): Code to be executed to clean drop-in directory.
(generate_systemd_dropin): Fill $cleanup_dropin callback.
(initdb): Clean $cleanup_dropin in case of successful initdb.
This is not needed for upgrade() because we never create drop-ins
there.
* NEWS: Document changes.
Diffstat (limited to 'postgresql-check-db-dir.in')
0 files changed, 0 insertions, 0 deletions