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

+ 3
- 3
install-freedombone.sh 查看文件

298
   echo 'Ciphers aes256-ctr,aes128-ctr' >> /etc/ssh/sshd_config
298
   echo 'Ciphers aes256-ctr,aes128-ctr' >> /etc/ssh/sshd_config
299
   echo 'MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
299
   echo 'MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
300
   KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config
300
   KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1' >> /etc/ssh/sshd_config
301
-  apt-get -y install fail2ban
301
+  apt-get -y --force-yes install fail2ban
302
   echo 'configure_ssh' >> $COMPLETION_FILE
302
   echo 'configure_ssh' >> $COMPLETION_FILE
303
   echo ''
303
   echo ''
304
   echo ''
304
   echo ''
345
   if grep -Fxq "time_synchronisation" $COMPLETION_FILE; then
345
   if grep -Fxq "time_synchronisation" $COMPLETION_FILE; then
346
 	  return
346
 	  return
347
   fi
347
   fi
348
-  apt-get -y install tlsdate
348
+  apt-get -y --force-yes install tlsdate
349
   apt-get -y remove ntpdate
349
   apt-get -y remove ntpdate
350
 
350
 
351
   echo '#!/bin/bash' > /usr/bin/updatedate
351
   echo '#!/bin/bash' > /usr/bin/updatedate
814
   if grep -Fxq "configure_gpg" $COMPLETION_FILE; then
814
   if grep -Fxq "configure_gpg" $COMPLETION_FILE; then
815
 	  return
815
 	  return
816
   fi
816
   fi
817
-  apt-get -y install gnupg
817
+  apt-get -y --force-yes install gnupg
818
 
818
 
819
   if [ ! -d /home/$MY_USERNAME/.gnupg ]; then
819
   if [ ! -d /home/$MY_USERNAME/.gnupg ]; then
820
 	  mkdir /home/$MY_USERNAME/.gnupg
820
 	  mkdir /home/$MY_USERNAME/.gnupg