testing/jailkit: simplify install files

This commit is contained in:
Sören Tempel 2015-08-08 12:22:41 +02:00 committed by Francesco Colista
parent 86f14fe466
commit 4331ce580f
3 changed files with 5 additions and 20 deletions

View File

@ -2,7 +2,7 @@
# Maintainer:
pkgname=jailkit
pkgver=2.15
pkgrel=0
pkgrel=1
pkgdesc="Utilities for chroot jailing a user or process."
url="http://olivier.sessink.nl/jailkit"
arch="all"

View File

@ -1,10 +1,3 @@
#!/bin/sh
# test if the jk_chrootsh is already in /etc/shells
if test -w /etc/shells; then \
if grep /usr/sbin/jk_chrootsh /etc/shells ; then \
echo "commenting /usr/sbin/jk_chroots out of /etc/shells";\
sed -i "s|^/usr/sbin/jk_chrootsh.*|#&|" /etc/shells ;\
fi \
fi
remove-shell '/usr/sbin/jk_chroots'
exit 0

View File

@ -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