mac_install: ensure to test /etc/ssh for el capitan.

This commit is contained in:
Jeremy Gardais 2016-05-02 10:14:08 +02:00
parent 488706b775
commit e992c9a06c
1 changed files with 5 additions and 2 deletions

View File

@ -75,8 +75,11 @@ function getMyHostKey() {
'Darwin') 'Darwin')
hostkey="/etc/ssh_host_rsa_key.pub" hostkey="/etc/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." hostkey="/etc/ssh/ssh_host_rsa_key.pub"
return "$ERROR" if [ ! -f "${hostkey}" ]; then
printf '\e[1;31m%-6s\e[m' "Impossible de trouver la clef ssh publique ce cette machine, installation annulée."
return "$ERROR"
fi
fi fi
;; ;;
'Linux') 'Linux')