diff options
Diffstat (limited to 'main/postgresql')
-rw-r--r-- | main/postgresql/APKBUILD | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD index 626dd8287..1a53ae658 100644 --- a/main/postgresql/APKBUILD +++ b/main/postgresql/APKBUILD @@ -27,6 +27,14 @@ prepare() { msg $i patch -p1 -i "$srcdir"/$i || return 1 done + # sanity check of conf.d + ( + . "$srcdir"/postgresql.confd + _datadir=/var/lib/postgresql/${pkgver%.*}/data + if [ "$_datadir" != "$PGDATA" ]; then + die "PGDATA is $PGDATA while $_datadir is expected" + fi + ) || return 1 } build() { |