clean up messages
This commit is contained in:
parent
9ca6bed8f1
commit
ad58d4f3cd
@ -36,7 +36,7 @@ mkdir -p $CHROOT$CHROOT # make new home dir
|
|||||||
|
|
||||||
SHELL=$(cat /etc/passwd | grep $USER | tr ":" "\n" | tail -n 1)
|
SHELL=$(cat /etc/passwd | grep $USER | tr ":" "\n" | tail -n 1)
|
||||||
if [ ! -f $CHROOT$SHELL ]; then
|
if [ ! -f $CHROOT$SHELL ]; then
|
||||||
echo "WARN: You didn't add the shell specified in /etc/passwd for $USER: ($SHELL)"
|
echo "WARN: You didn't add the shell specified in /etc/passwd for \"$USER\": ($SHELL)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ARCH amd64
|
# ARCH amd64
|
||||||
@ -50,8 +50,3 @@ if [ -f /lib/ld-linux.so.2 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl restart sshd
|
systemctl restart sshd
|
||||||
|
|
||||||
echo "NOTE: If you are using a shell that is NOT /bin/bash, you need to tell"
|
|
||||||
echo " chroot that by using: chroot $CHROOT {other shell path}"
|
|
||||||
echo ""
|
|
||||||
echo "Chroot jail is ready. To access it execute: chroot $CHROOT"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user