From a9e20baceef0ecdb7ee3da80c9b215357b65d17f Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 23 May 2006 17:37:21 +0000 Subject: [PATCH] 2006-05-23 17:37:21 by steve Attempt to install openssh with yum. Untested. --- etc/hook.d/70-install-ssh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/etc/hook.d/70-install-ssh b/etc/hook.d/70-install-ssh index 2615b04..812aa50 100755 --- a/etc/hook.d/70-install-ssh +++ b/etc/hook.d/70-install-ssh @@ -12,8 +12,20 @@ prefix=$1 if [ "${rpmstrap}" ]; then - echo "ssh installation for non-Debian distribution ${dist} is not available." - exit; + + # + # Use yum to install openssh if we can. + # + if [[ -x ${prefix}/usr/bin/yum ]]; then + chroot ${prefix}/usr/bin/yum -y install openssh-server + else + echo "I don't know how to install OpenSSH for your distro." + fi + + # + # Finished. + # + exit fi #