2006-06-09 11:01:36 by steve
Added
This commit is contained in:
parent
5111d31d68
commit
c9687b92a7
37
hooks/centos4/70-install-ssh
Executable file
37
hooks/centos4/70-install-ssh
Executable file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user