check_ssh.sh: add support for debian 11 (bullseye).

This commit is contained in:
Christoph 2021-08-22 14:26:53 +02:00
parent 87ca1aadb8
commit dd0ba5a377

View File

@ -149,7 +149,7 @@ if $LOGGING ; then
echo -e "\n Check if SSH service is running.." echo -e "\n Check if SSH service is running.."
echo -e " =================================" echo -e " ================================="
fi fi
if ! ps -e f | grep -E "[[:digit:]]\ ${check_string_ps}" | grep -v grep > /dev/null ; then if ! ps -e f | grep -E "[[:digit:]]\ .*\s?${check_string_ps}" | grep -v grep > /dev/null ; then
error "SSH service seems to be down! Trying to restart service now.." error "SSH service seems to be down! Trying to restart service now.."
if [[ -n "$SSHD_SERVICE_FILE" ]] ; then if [[ -n "$SSHD_SERVICE_FILE" ]] ; then