Don't reboot if installing within docker

This commit is contained in:
Bob Mottram 2014-09-25 09:32:27 +01:00
parent 94c0426e05
commit 52a8833097
1 changed files with 5 additions and 0 deletions

View File

@ -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 ***'