From cf655a18c3dfe6da8072990ffa8b34c25e4236c9 Mon Sep 17 00:00:00 2001 From: David Huerta Date: Tue, 14 Jun 2016 21:28:23 -0400 Subject: [PATCH] Maybe-working auto-upgrades and auto-yes config. --- config/apt/20auto-upgrades | 2 ++ setup.sh | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 config/apt/20auto-upgrades diff --git a/config/apt/20auto-upgrades b/config/apt/20auto-upgrades new file mode 100644 index 0000000..7ef370f --- /dev/null +++ b/config/apt/20auto-upgrades @@ -0,0 +1,2 @@ +APT::Periodic::Update-Package-Lists "1"; +APT::Periodic::Unattended-Upgrade "1"; \ No newline at end of file diff --git a/setup.sh b/setup.sh index cf4f2a0..10da1bf 100644 --- a/setup.sh +++ b/setup.sh @@ -6,22 +6,26 @@ echo 'Type "y" and hit enter to remove when asked.' apt-get remove --purge exim postfix sendmail echo 'Applying software updates...' -echo 'Type "y" and hit enter to install when asked.' +#echo 'Type "y" and hit enter to install when asked.' apt-get update -apt-get upgrade +apt-get -y upgrade echo 'Installing Tor from official Tor software repository...' -echo 'Type "y" and hit enter to install Tor when asked.' +#echo 'Type "y" and hit enter to install Tor when asked.' add-apt-repository http://deb.torproject.org/torproject.org gpg --keyserver keys.gnupg.net --recv 886DDD89 gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add - apt-get update -apt-get install tor deb.torproject.org-keyring +apt-get -y install tor deb.torproject.org-keyring echo 'Setting up Tor onion service...' cp blooming-onion/config/tor/torrc /etc/tor/. service tor reload +echo 'Configuring automatic security upgrades...' +apt-get -y install unattended-upgrade +cp blooming-onion/config/apt/20auto-upgrades /etc/apt/apt.conf.d/. + ONION_ADDRESS=`sudo cat /var/lib/tor/hidden_service/hostname` if [ -n "$ONION_ADDRESS" ]; then