fixed check_ssh()

This commit is contained in:
Oliver Ladner 2011-01-06 15:11:13 +01:00
commit 8b8d560b99

View file

@ -82,10 +82,14 @@ check_md5() {
}
check_ssh() {
if [[ $(grep -i -c 'PermitRootLogin.*yes' /etc/ssh/ss*conf*) > 0 ]]; then
SSHD="Root login enabled!"
if [ $ssh ]; then
SSHD="not run"
else
SSHD="root login disabled"
if [[ $(grep -i -c 'PermitRootLogin.*yes' /etc/ssh/ss*conf*) > 0 ]]; then
SSHD="Root login enabled!"
else
SSHD="root login disabled"
fi
fi
}