From 52a8833097a789b9139c2c0e0d7c885b75cad9e2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 25 Sep 2014 09:32:27 +0100 Subject: [PATCH] Don't reboot if installing within docker --- install-freedombone.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 484a6aee..e05648d9 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -486,6 +486,11 @@ function configure_ssh { KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config apt-get -y --force-yes install fail2ban echo 'configure_ssh' >> $COMPLETION_FILE + # Don't reboot if installing within docker + # random numbers will come from the host system + if [[ $INSTALLED_WITHIN_DOCKER == "yes" ]]; then + return + fi echo '' echo '' echo ' *** Rebooting to initialise ssh settings and random number generator ***'