Correct the warning if sshd is unavailable.

This commit is contained in:
Jeremy Gardais 2016-05-20 15:09:31 +02:00
parent a424966e22
commit 8286b26d96
1 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ function getMyHostKey() {
if [ ! -f "${hostkey}" ]; then if [ ! -f "${hostkey}" ]; then
hostkey="/etc/ssh/ssh_host_rsa_key.pub" hostkey="/etc/ssh/ssh_host_rsa_key.pub"
if [ ! -f "${hostkey}" ]; then if [ ! -f "${hostkey}" ]; then
printf '\e[1;31m%-6s\e[m' "Impossible de trouver la clef ssh publique ce cette machine, installation annulée." printf '\e[1;31m%-6s\e[m' "Impossible de trouver la clef ssh publique ce cette machine, SSH est-il bien installé?\n Installation annulée."
return "$ERROR" return "$ERROR"
fi fi
fi fi