From cc6605695d75450d4dffd7bcc1563c3263b614b0 Mon Sep 17 00:00:00 2001 From: Sam Tygier Date: Tue, 18 Dec 2018 18:32:06 +0000 Subject: Allow enabling ssh server from config Add ENABLE_SSH option --- stage2/01-sys-tweaks/01-run.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'stage2') diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 8fb99c1..8d28adc 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -15,7 +15,11 @@ on_chroot << EOF systemctl disable hwclock.sh systemctl disable nfs-common systemctl disable rpcbind -systemctl disable ssh +if [ "${ENABLE_SSH}" == "1" ]; then + systemctl enable ssh +else + systemctl disable ssh +fi systemctl enable regenerate_ssh_host_keys EOF -- cgit v1.2.3