From 0ae4376ade28fd8d710c7f4f6cbd23c7bb34c403 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 24 May 2006 19:46:17 +0000 Subject: [PATCH] 2006-05-24 19:46:17 by steve Fixed script to work. Also install 'openssh-server' on etch/sid, not 'ssh'. --- etc/hook.d/70-install-ssh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/etc/hook.d/70-install-ssh b/etc/hook.d/70-install-ssh index dcea39a..f331b8d 100755 --- a/etc/hook.d/70-install-ssh +++ b/etc/hook.d/70-install-ssh @@ -13,13 +13,28 @@ prefix=$1 dist=$2 +function installDebianPackage +{ + package=$1 + + DEBIAN_FRONTEND=noninteractive chroot ${prefix} /usr/bin/apt-get --yes --force-yes install ${package} + +} # # Sets up the installation of OpenSSH on a Debian GNU/Linux system. # function setupDebian { - DEBIAN_FRONTEND=noninteractive chroot ${prefix} /usr/bin/apt-get --yes --force-yes install ssh + case "${dist}" in + sarge) + installDebianPackage ssh + ;; + etch|sid) + installDebianPackage openssh-server + installDebianPackage openssh-client + ;; + esac # # Make sure sshd isn't running, this will cause our unmounting of the @@ -46,7 +61,7 @@ function setupCentOS4 # case "${dist}" in sarge|etch|sid) - setupDebianSources + setupDebian ;; centos4) setupCentOS4