aboutsummaryrefslogtreecommitdiffstats
path: root/testing/jailkit/jailkit.post-install
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-08-08 12:22:41 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2015-08-13 11:25:58 +0000
commit4331ce580fbe8236249828fa7c7913cc99d0c9e4 (patch)
treeb28e12dc25de79449fc621ce3e9301bed5243861 /testing/jailkit/jailkit.post-install
parent86f14fe466d97b1746442e0bd1791358bbf08e97 (diff)
downloadaports-4331ce580fbe8236249828fa7c7913cc99d0c9e4.tar.gz
aports-4331ce580fbe8236249828fa7c7913cc99d0c9e4.tar.bz2
aports-4331ce580fbe8236249828fa7c7913cc99d0c9e4.tar.xz
testing/jailkit: simplify install files
Diffstat (limited to 'testing/jailkit/jailkit.post-install')
-rw-r--r--testing/jailkit/jailkit.post-install12
1 files changed, 2 insertions, 10 deletions
diff --git a/testing/jailkit/jailkit.post-install b/testing/jailkit/jailkit.post-install
index 3476571882..88a592511a 100644
--- a/testing/jailkit/jailkit.post-install
+++ b/testing/jailkit/jailkit.post-install
@@ -1,11 +1,3 @@
#!/bin/sh
-
-# test if the jk_chrootsh is already in /etc/shells
-# this previously had _at_echo but that fails on FreeBSD
-if test -w /etc/shells; then \
- if ! grep /usr/sbin/jk_chrootsh /etc/shells ; then \
- echo "appending /usr/sbin/jk_chroots to /etc/shells";\
- echo /usr/sbin/jk_chrootsh >> /etc/shells ;\
- fi \
-fi
-
+add-shell '/usr/sbin/jk_chroots'
+exit 0