mac_install: ensure to test /etc/ssh for el capitan.
This commit is contained in:
parent
488706b775
commit
e992c9a06c
|
@ -74,10 +74,13 @@ function getMyHostKey() {
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
'Darwin')
|
'Darwin')
|
||||||
hostkey="/etc/ssh_host_rsa_key.pub"
|
hostkey="/etc/ssh_host_rsa_key.pub"
|
||||||
|
if [ ! -f "${hostkey}" ]; then
|
||||||
|
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, installation annulée."
|
||||||
return "$ERROR"
|
return "$ERROR"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
'Linux')
|
'Linux')
|
||||||
hostkey="/etc/ssh/ssh_host_ecdsa_key.pub"
|
hostkey="/etc/ssh/ssh_host_ecdsa_key.pub"
|
||||||
|
|
Loading…
Reference in New Issue