Skip to content
Snippets Groups Projects
Commit f21f61f6 authored by Martin Pitt's avatar Martin Pitt
Browse files

* debian/maintscripts-functions: Do not fail package installation if

  pg_createcluster fails (/var might be full and the admin might want to use
  a different directory). Merely print out an error message and point to
  pg_createcluster and its manpage. (part of bug #368335)
parent 96ea2709
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,12 @@ postgresql-common (55) unstable; urgency=low
bug #368335).
* t/030_errors.t: Test that pg_dropcluster copes with broken cluster
configurations.
* debian/maintscripts-functions: Do not fail package installation if
pg_createcluster fails (/var might be full and the admin might want to use
a different directory). Merely print out an error message and point to
pg_createcluster and its manpage. (part of bug #368335)
-- Martin Pitt <mpitt@debian.org> Thu, 1 Jun 2006 22:29:43 +0200
-- Martin Pitt <mpitt@debian.org> Thu, 1 Jun 2006 23:02:20 +0200
postgresql-common (54) unstable; urgency=low
......
......@@ -23,7 +23,13 @@ configure_version() {
[ "$VERSION" ] || { echo "Error: configure_version: need version parameter" >&2; exit 1; }
if [ ! -d "/etc/postgresql/$VERSION" ] || [ -z "$(ls /etc/postgresql/$VERSION)" ] || \
[ -z "$(ls /etc/postgresql/$VERSION/*/postgresql.conf 2>/dev/null)" ]; then
[ "$2" ] || /usr/bin/pg_createcluster -u postgres $VERSION main
[ "$2" ] || /usr/bin/pg_createcluster -u postgres $VERSION main || {
echo "Error: could not create default cluster. Please create it manually with
pg_createcluster $VERSION main --start
or a similar command (see 'man pg_createcluster')." >&2
}
fi
_link_manpages "$VERSION" "postgresql-$VERSION" postmaster.1.gz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment