Ver código fonte

Don't reboot if installing within docker

Bob Mottram 11 anos atrás
pai
commit
52a8833097
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5
    0
      install-freedombone.sh

+ 5
- 0
install-freedombone.sh Ver arquivo

@@ -486,6 +486,11 @@ function configure_ssh {
486 486
   KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config
487 487
   apt-get -y --force-yes install fail2ban
488 488
   echo 'configure_ssh' >> $COMPLETION_FILE
489
+  # Don't reboot if installing within docker
490
+  # random numbers will come from the host system
491
+  if [[ $INSTALLED_WITHIN_DOCKER == "yes" ]]; then
492
+      return
493
+  fi
489 494
   echo ''
490 495
   echo ''
491 496
   echo '  *** Rebooting to initialise ssh settings and random number generator ***'