diff --git a/libs/postgresql/Makefile b/libs/postgresql/Makefile index 9db0e76060..6cdbab9cde 100644 --- a/libs/postgresql/Makefile +++ b/libs/postgresql/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=postgresql PKG_VERSION:=17.5 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Daniel Golle PKG_LICENSE:=PostgreSQL PKG_CPE_ID:=cpe:/a:postgresql:postgresql diff --git a/libs/postgresql/files/postgresql.init b/libs/postgresql/files/postgresql.init index 57613364fa..e8cf8d8ee8 100644 --- a/libs/postgresql/files/postgresql.init +++ b/libs/postgresql/files/postgresql.init @@ -32,8 +32,12 @@ start_service() { user_exists postgres 5432 || user_add postgres 5432 group_exists postgres 5432 || group_add postgres 5432 + local mountpoint="$(procd_get_mountpoints "${pgdata}")" + [ "$_BOOT" = "1" ] && - [ "$(procd_get_mountpoints $pgdata)" ] && return 0 + [ "$mountpoint" ] && + ! grep -q ".* $mountpoint " /proc/mounts && + return 0 fix_perms fix_hosts