summaryrefslogtreecommitdiffstats
path: root/testing/jailkit/jailkit.post-deinstall
blob: 1a6f5abb3725da25ec982bace669b030c2b8b7fd (plain)
1
2
3
4
5
6
7
8
9
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