aports/testing/jailkit/jailkit.post-install
Dean Takemori d09efed349 testing/jailkit: new aport
Utilities for chroot jailing a user or process.
http://olivier.sessink.nl/jailkit
2012-07-09 09:53:43 +00:00

12 lines
320 B
Bash

#!/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