mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 11:21:50 +01:00
11 lines
275 B
Bash
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
|
|
|