Ver código fonte

Missing installs

Bob Mottram 10 anos atrás
pai
commit
e9ed8751fc
2 arquivos alterados com 25 adições e 5 exclusões
  1. 1
    1
      initial_setup.sh
  2. 24
    4
      install-freedombone.sh

+ 1
- 1
initial_setup.sh Ver arquivo

31
 ROUTER_IP_ADDRESS="192.168.1.254"
31
 ROUTER_IP_ADDRESS="192.168.1.254"
32
 
32
 
33
 # The fixed IP address of the Beaglebone Black on your local network
33
 # The fixed IP address of the Beaglebone Black on your local network
34
-BBB_FIXED_IP_ADDRESS="192.168.1.60"
34
+BBB_FIXED_IP_ADDRESS="192.168.1.55"
35
 
35
 
36
 MICROSD_MOUNT_POINT="/media/$USER"
36
 MICROSD_MOUNT_POINT="/media/$USER"
37
 
37
 

+ 24
- 4
install-freedombone.sh Ver arquivo

2931
           return
2931
           return
2932
       fi
2932
       fi
2933
   fi
2933
   fi
2934
-  apt-get -y --force-yes owncloud
2934
+  apt-get -y --force-yes install owncloud
2935
 
2935
 
2936
   if [ ! -d /var/www/$OWNCLOUD_DOMAIN_NAME ]; then
2936
   if [ ! -d /var/www/$OWNCLOUD_DOMAIN_NAME ]; then
2937
       mkdir /var/www/$OWNCLOUD_DOMAIN_NAME
2937
       mkdir /var/www/$OWNCLOUD_DOMAIN_NAME
3236
   if [ ! $WIKI_DOMAIN_NAME ]; then
3236
   if [ ! $WIKI_DOMAIN_NAME ]; then
3237
       return
3237
       return
3238
   fi
3238
   fi
3239
-  apt-get -y --force-yes instal dokuwiki
3239
+  apt-get -y --force-yes install dokuwiki
3240
 
3240
 
3241
   if [ ! -d /var/www/$WIKI_DOMAIN_NAME ]; then
3241
   if [ ! -d /var/www/$WIKI_DOMAIN_NAME ]; then
3242
       mkdir /var/www/$WIKI_DOMAIN_NAME
3242
       mkdir /var/www/$WIKI_DOMAIN_NAME
4534
   echo 'create_upgrade_script' >> $COMPLETION_FILE
4534
   echo 'create_upgrade_script' >> $COMPLETION_FILE
4535
 }
4535
 }
4536
 
4536
 
4537
+function intrusion_detection {
4538
+  if grep -Fxq "intrusion_detection" $COMPLETION_FILE; then
4539
+      return
4540
+  fi
4541
+  apt-get install tripwire
4542
+  apt-get -y --force-yes autoremove
4543
+  cd /etc/tripwire
4544
+  cp arm-local.key $DOMAIN_NAME-local.key
4545
+  cp site.key $DOMAIN_NAME-site.key
4546
+  echo ''
4547
+  echo ''
4548
+  echo '*** Installing intrusion detection. You should create a couple of passwords for this. ***'
4549
+  echo ''
4550
+  echo ''
4551
+  tripwire --init
4552
+  tripwire --update-policy --secure-mode low /etc/tripwire/twpol.txt
4553
+  tripwire --check
4554
+
4555
+  echo 'intrusion_detection' >> $COMPLETION_FILE
4556
+}
4557
+
4537
 function install_final {
4558
 function install_final {
4538
   if grep -Fxq "install_final" $COMPLETION_FILE; then
4559
   if grep -Fxq "install_final" $COMPLETION_FILE; then
4539
       return
4560
       return
4543
       umount $USB_MOUNT
4564
       umount $USB_MOUNT
4544
       rm -rf $USB_MOUNT
4565
       rm -rf $USB_MOUNT
4545
   fi
4566
   fi
4546
-  apt-get -y --force-yes autoremove
4547
   echo 'install_final' >> $COMPLETION_FILE
4567
   echo 'install_final' >> $COMPLETION_FILE
4548
   echo ''
4568
   echo ''
4549
   echo '  *** Freedombone installation is complete. Rebooting... ***'
4569
   echo '  *** Freedombone installation is complete. Rebooting... ***'
4617
 create_restore_script
4637
 create_restore_script
4618
 backup_to_friends_servers
4638
 backup_to_friends_servers
4619
 restore_from_friend
4639
 restore_from_friend
4640
+intrusion_detection
4620
 install_final
4641
 install_final
4621
-apt-get -y --force-yes autoremove
4622
 echo 'Freedombone installation is complete'
4642
 echo 'Freedombone installation is complete'
4623
 exit 0
4643
 exit 0