diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/provision | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index 415c0c0..7ed066a 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -109,6 +109,7 @@ function hydra_provision_config { hydra_user_config vg $hostname "Install vg" hydra_user_config grub y "Setup GRUB? (y/n)" hydra_user_config mirror http://http.debian.net/debian/ "Debian mirror" + hydra_user_config ssh y "Install openssh-server? (y/n)" # Check arch if [ "$arch" == "armel" ] || [ "$arch" == "armhf" ]; then @@ -477,9 +478,11 @@ $APT_INSTALL screen cron lsb-release openssl -y hydra_provision_networking # SSH. -echo "Installing OpenSSH daemon..." -$APT_INSTALL openssh-server -y -hydra_sudo_run chroot $WORK/ service ssh stop +if [ "$ssh" == "y" ]; then + echo "Installing OpenSSH daemon..." + $APT_INSTALL openssh-server -y + hydra_sudo_run chroot $WORK/ service ssh stop +fi # Sudo. echo "Installing sudo..." @@ -491,7 +494,9 @@ echo "Choose a root password." hydra_sudo_run chroot $WORK passwd root # Fingerprints -hydra_provision_fingerprints +if [ "$ssh" == "y" ]; then + hydra_provision_fingerprints +fi echo "Umounting installation device..." hydra_sudo_run umount $WORK/sys $WORK/proc $WORK/dev $WORK |