Pārlūkot izejas kodu

Rebooting messages

Bob Mottram 10 gadus atpakaļ
vecāks
revīzija
a67d0af866
1 mainītis faili ar 18 papildinājumiem un 1 dzēšanām
  1. 18
    1
      install-freedombone.sh

+ 18
- 1
install-freedombone.sh Parādīt failu

182
   service ssh restart
182
   service ssh restart
183
   apt-get -y install fail2ban
183
   apt-get -y install fail2ban
184
   echo 'configure_ssh' >> $COMPLETION_FILE
184
   echo 'configure_ssh' >> $COMPLETION_FILE
185
+  echo ''
186
+  echo ''
187
+  echo '  *** Rebooting to initialise ssh settings and random number generator ***'
188
+  echo ''
189
+  echo "  ***              Reconnect via ssh on port $SSH_PORT                 ***"
190
+  echo ''
185
   reboot
191
   reboot
186
 }
192
 }
187
 
193
 
810
   echo 'folders_for_email_addresses' >> $COMPLETION_FILE
816
   echo 'folders_for_email_addresses' >> $COMPLETION_FILE
811
 }
817
 }
812
 
818
 
819
+function install_final {
820
+  if grep -Fxq "install_final" $COMPLETION_FILE; then
821
+	  return
822
+  fi
823
+  echo 'install_final' >> $COMPLETION_FILE
824
+  echo ''
825
+  echo '  *** Freedombone installation is complete. Rebooting... ***'
826
+  echo ''
827
+  reboot
828
+}
829
+
813
 argument_checks
830
 argument_checks
814
 remove_proprietary_repos
831
 remove_proprietary_repos
815
 initial_setup
832
 initial_setup
834
 email_client
851
 email_client
835
 folders_for_mailing_lists
852
 folders_for_mailing_lists
836
 folders_for_email_addresses
853
 folders_for_email_addresses
837
-
854
+install_final
838
 echo 'Freedombone installation is complete'
855
 echo 'Freedombone installation is complete'