diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2005-08-14 15:29:18 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-14 15:29:18 +0000 |
commit | 55f058be50b8c3478c6c066d4bee72a8e0806d8f (patch) | |
tree | 07b8d80028ca3b9b6fd73047ac5b55d34e758fad /packages | |
parent | 94506d0460100a669ad990f445c0fdd4ac4c4cda (diff) |
Check if the dir exists first ;-)
Diffstat (limited to 'packages')
-rw-r--r-- | packages/openntpd/openntpd_3.7p1.bb | 4 |
1 files changed, 2 insertions, 2 deletions
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 <nail@nslu2-linux.org>" 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 } |