aports/testing/jailkit/jailkit.post-deinstall
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

11 lines
275 B
Bash

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