From c9687b92a7bdcd03bd0df0af9d1dbb3c9128088e Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 9 Jun 2006 11:01:36 +0000 Subject: [PATCH] 2006-06-09 11:01:36 by steve Added --- hooks/centos4/70-install-ssh | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 hooks/centos4/70-install-ssh diff --git a/hooks/centos4/70-install-ssh b/hooks/centos4/70-install-ssh new file mode 100755 index 0000000..1524c59 --- /dev/null +++ b/hooks/centos4/70-install-ssh @@ -0,0 +1,37 @@ +#!/bin/sh +# +# This script installs OpenSSH upon the new system. +# +# Steve +# -- +# http://www.steve.org.uk/ + + +prefix=$1 + + +# +# Source our common functions +# +if [ -e ../common.sh ]; then + . ../common.sh +fi + + +# +# Log our start +# +logMessage Script $0 starting + +# +# Install the OpenSSH server. +# +chroot ${prefix} /bin/mount /proc +chroot ${prefix} /usr/bin/yum -y install openssh-server +chroot ${prefix} /bin/umount /proc + + +# +# Log our finish +# +logMessage Script $0 finished