浏览代码

Don't reboot if installing within docker

Bob Mottram 11 年前
父节点
当前提交
52a8833097
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      install-freedombone.sh

+ 5
- 0
install-freedombone.sh 查看文件

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