#!/bin/bash
# installs unattended-upgrades on Wheezy
# paul@vandervlis.nl
cd /tmp
wget http://www.vandervlis.nl/files/unattended-upgrades_0.83.3~bpo70+1_all.deb
dpkg -i unattended-upgrades_*_all.deb
apt-get -f install
wget vandervlis.nl/files/10periodic
wget vandervlis.nl/files/50unattended-upgrades
mv 10periodic /etc/apt/apt.conf.d/
mv 50unattended-upgrades /etc/apt/apt.conf.d/
unattended-upgrade --debug --dry-run

# flash
wget vandervlis.nl/files/flash-update
mv flash-update /etc/cron.d/
chmod 644 /etc/cron.d/flash-update
