mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
testing/jailkit: simplify install files
This commit is contained in:
parent
86f14fe466
commit
4331ce580f
@ -2,7 +2,7 @@
|
||||
# Maintainer:
|
||||
pkgname=jailkit
|
||||
pkgver=2.15
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Utilities for chroot jailing a user or process."
|
||||
url="http://olivier.sessink.nl/jailkit"
|
||||
arch="all"
|
||||
|
||||
@ -1,10 +1,3 @@
|
||||
#!/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
|
||||
|
||||
remove-shell '/usr/sbin/jk_chroots'
|
||||
exit 0
|
||||
|
||||
@ -1,11 +1,3 @@
|
||||
#!/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
|
||||
|
||||
add-shell '/usr/sbin/jk_chroots'
|
||||
exit 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user