Browse Source

95ssh-client/module-setup.sh: do not install ssh-client by default

Do not install ssh-client by default and report the missing ctty in the
install section.
master
Harald Hoyer 13 years ago
parent
commit
38164332e1
  1. 15
      modules.d/95ssh-client/module-setup.sh

15
modules.d/95ssh-client/module-setup.sh

@ -9,22 +9,18 @@ check() { @@ -9,22 +9,18 @@ check() {
type -P ssh >/dev/null || return 1
type -P scp >/dev/null || return 1
[[ $mount_needs ]] && return 1

if [[ $sshkey ]]; then
[ ! -f $sshkey ] && {
derror "sshkey is not found!"
derror "ssh key: $sshkey is not found!"
return 1
}
[[ ! $cttyhack = yes ]] && {
dinfo "--ctty is not used, you should make sure the machine is a knownhost and copy the sshkey to remote machine!"
}
else
[[ ! $cttyhack = yes ]] && {
derror "ssh interactive mode needs option --ctty!"
return 1
}
fi

return 0
return 255
}

depends() {
@ -54,6 +50,11 @@ inst_sshenv() @@ -54,6 +50,11 @@ inst_sshenv()
}

install() {
[[ ! $cttyhack = yes ]] && {
derror "ssh interactive mode needs option --ctty!"
return 1
}

inst ssh
inst scp
inst_sshenv

Loading…
Cancel
Save