From 55f058be50b8c3478c6c066d4bee72a8e0806d8f Mon Sep 17 00:00:00 2001 From: Oyvind Repvik Date: Sun, 14 Aug 2005 15:29:18 +0000 Subject: Check if the dir exists first ;-) --- packages/openntpd/openntpd_3.7p1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/openntpd/openntpd_3.7p1.bb') diff --git a/packages/openntpd/openntpd_3.7p1.bb b/packages/openntpd/openntpd_3.7p1.bb index 5204f34bb3..77d2eb892b 100644 --- a/packages/openntpd/openntpd_3.7p1.bb +++ b/packages/openntpd/openntpd_3.7p1.bb @@ -6,7 +6,7 @@ LICENSE = "BSD" SECTION = "console/network" MAINTAINER = "Oyvind Repvik " DEPENDS = "timezones" -PR="r8" +PR="r9" SRC_URI = "http://www.zip.com.au/~dtucker/openntpd/release/openntpd-${PV}.tar.gz \ file://autofoo.patch;patch=1 \ @@ -38,7 +38,7 @@ pkg_postrm () { } pkg_postinst () { - mkdir -p ${localstatedir}/shared/empty + [ ! -d ${localstatedir}/shared/empty ] && mkdir -p ${localstatedir}/shared/empty grep ntpd ${sysconfdir}/passwd || adduser --disabled-password --home=${localstatedir}/shared/empty --ingroup nogroup ntpd chown root:root ${localstatedir}/shared/empty } -- cgit v1.2.3