diff options
Diffstat (limited to 'testing/jailkit/jailkit.post-deinstall')
-rw-r--r-- | testing/jailkit/jailkit.post-deinstall | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/jailkit/jailkit.post-deinstall b/testing/jailkit/jailkit.post-deinstall new file mode 100644 index 0000000000..1a6f5abb37 --- /dev/null +++ b/testing/jailkit/jailkit.post-deinstall @@ -0,0 +1,10 @@ +#!/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 + |