aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-09-04 16:03:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-09-04 16:03:02 +0000
commitd5395a6e589d061de74853cb43e99f0cd7b55c6f (patch)
treec63eb081487cf79b2fac0641ecd40d1d34841f5d
parentfbdf44f7b99579b6b3d97d2a979d1e4837714ee4 (diff)
downloadaports-d5395a6e589d061de74853cb43e99f0cd7b55c6f.tar.bz2
aports-d5395a6e589d061de74853cb43e99f0cd7b55c6f.tar.xz
main/alpine-baselayout: check for /sbin/rc before using it
-rw-r--r--main/alpine-baselayout/APKBUILD2
-rw-r--r--main/alpine-baselayout/alpine-baselayout.post-install2
2 files changed, 2 insertions, 2 deletions
diff --git a/main/alpine-baselayout/APKBUILD b/main/alpine-baselayout/APKBUILD
index 00e2265407..645cfcfc4a 100644
--- a/main/alpine-baselayout/APKBUILD
+++ b/main/alpine-baselayout/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-baselayout
pkgver=2.3.0
-pkgrel=1
+pkgrel=2
pkgdesc="Alpine base dir structure and init scripts"
url="http://git.alpinelinux.org/cgit/aports/tree/main/alpine-baselayout"
depends=
diff --git a/main/alpine-baselayout/alpine-baselayout.post-install b/main/alpine-baselayout/alpine-baselayout.post-install
index 79050e5ca7..1f675d1803 100644
--- a/main/alpine-baselayout/alpine-baselayout.post-install
+++ b/main/alpine-baselayout/alpine-baselayout.post-install
@@ -21,7 +21,7 @@ __EOF__
}
# create compat start/stop scripts for vserver guests
-if [ "$( /sbin/rc --sys )" = "VSERVER" ]; then
+if [ -x /sbin/rc ] && [ "$( /sbin/rc --sys )" = "VSERVER" ]; then
# create rcL and rcK
if ! [ -e /etc/init.d/rcL ]; then
create_vserver_startstop > /etc/init.d/rcL