From patchwork Sun Mar 6 20:29:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Yaniger X-Patchwork-Id: 592589 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id AEA1E14030F for ; Mon, 7 Mar 2016 07:29:47 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6A2FB3336E; Sun, 6 Mar 2016 20:29:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8WtpFrE7YmY2; Sun, 6 Mar 2016 20:29:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B093D3389D; Sun, 6 Mar 2016 20:29:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B699B1C168D for ; Sun, 6 Mar 2016 20:29:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B37C7958D0 for ; Sun, 6 Mar 2016 20:29:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uJINP4c8K44m for ; Sun, 6 Mar 2016 20:29:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx.tkos.co.il (guitar.tcltek.co.il [192.115.133.116]) by hemlock.osuosl.org (Postfix) with ESMTPS id BC2D39577F for ; Sun, 6 Mar 2016 20:29:26 +0000 (UTC) Received: from alan-tkos.home (line103-33.adsl.actcom.co.il [192.117.103.33]) by mx.tkos.co.il (Postfix) with ESMTPA id 559AE4407F7; Sun, 6 Mar 2016 22:29:06 +0200 (IST) From: Alan Yaniger To: buildroot@buildroot.org Date: Sun, 6 Mar 2016 22:29:10 +0200 Message-Id: <1457296152-4047-2-git-send-email-alan@tkos.co.il> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457296152-4047-1-git-send-email-alan@tkos.co.il> References: <1457296152-4047-1-git-send-email-alan@tkos.co.il> Subject: [Buildroot] [PATCH 1/2] Set PGROOT dir owner to be "postgres". X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Without this change, the postgres server fails to start on boot. Signed-off-by: Alan Yaniger --- package/postgresql/postgresql.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk index 444c1b1..5906ce9 100644 --- a/package/postgresql/postgresql.mk +++ b/package/postgresql/postgresql.mk @@ -17,6 +17,10 @@ POSTGRESQL_CONF_ENV = ac_cv_type_struct_sockaddr_in6=yes \ POSTGRESQL_AUTORECONF = YES POSTGRESQL_CONF_OPTS = --disable-rpath +define POSTGRESQL_PERMISSIONS + /var/lib/pgsql d 755 postgres postgres - - - - - +endef + ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) # PostgreSQL does not build against uClibc with locales # enabled, due to an uClibc bug, see