Reboot before ssh key generation

This commit is contained in:
Bob Mottram 2014-09-21 10:44:23 +01:00
parent cfdf5858c6
commit 62903f2081
1 changed files with 1 additions and 2 deletions

View File

@ -157,8 +157,6 @@ function random_number_generator {
if [ $USE_HWRNG == "yes" ]; then if [ $USE_HWRNG == "yes" ]; then
apt-get -y install rng-tools apt-get -y install rng-tools
sed -i 's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g' /etc/default/rng-tools sed -i 's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g' /etc/default/rng-tools
echo 'random_number_generator' >> $COMPLETION_FILE
reboot
else else
apt-get -y install haveged apt-get -y install haveged
fi fi
@ -184,6 +182,7 @@ function configure_ssh {
service ssh restart service ssh restart
apt-get -y install fail2ban apt-get -y install fail2ban
echo 'configure_ssh' >> $COMPLETION_FILE echo 'configure_ssh' >> $COMPLETION_FILE
reboot
} }
function regenerate_ssh_keys { function regenerate_ssh_keys {