1
0
mirror of synced 2026-02-07 16:21:24 +00:00
Files
xen-tools.xen-tools/etc/hook.d/70-install-ssh
steve da442e8c70 2005-12-24 12:42:44 by steve
Migrated most of the commands to setup the new host into external hooks.
2005-12-24 12:42:44 +00:00

12 lines
265 B
Bash
Executable File

#!/bin/sh
#
# This script installs OpenSSH upon the new system.
#
prefix=$1
hostname=$2
chroot ${prefix} /usr/bin/apt-get update
DEBIAN_FRONTEND=noninteractive chroot ${prefix} /usr/bin/apt-get --yes --force-yes install ssh
chroot ${prefix} /etc/init.d/ssh stop