Bläddra i källkod

Don't reboot if installing within docker

Bob Mottram 11 år sedan
förälder
incheckning
52a8833097
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5
    0
      install-freedombone.sh

+ 5
- 0
install-freedombone.sh Visa fil

486
   KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config
486
   KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config
487
   apt-get -y --force-yes install fail2ban
487
   apt-get -y --force-yes install fail2ban
488
   echo 'configure_ssh' >> $COMPLETION_FILE
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
   echo ''
494
   echo ''
490
   echo ''
495
   echo ''
491
   echo '  *** Rebooting to initialise ssh settings and random number generator ***'
496
   echo '  *** Rebooting to initialise ssh settings and random number generator ***'