ssh-client module install fix

commit 38164332e1 try to
disallow ssh-client install for without proper options.
But ssh-client will fail installation with --sshkey for
publickey mode

Fix it by refusing to install only when both --ctty and --sshkey
are not added in options.

Signed-off-by: Dave Young <dyoung@redhat.com>
master
Dave Young 2012-02-15 14:40:24 +08:00 committed by Harald Hoyer
parent c1df00d2c6
commit 86de902e35
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ inst_sshenv()
}

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