fixed check_ssh()

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

View file

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