Skip to content

Commit

Permalink
Maybe-working auto-upgrades and auto-yes config.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Huerta committed Jun 15, 2016
1 parent 57abe9f commit cf655a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions config/apt/20auto-upgrades
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
12 changes: 8 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf655a1

Please sign in to comment.