view scripts/autoupdates-install.sh @ 0:9e5a3c884de6

Initial import of the virtual testbed.
author Sebastien Decugis <sdecugis@nict.go.jp>
date Thu, 17 Jun 2010 11:00:32 +0900
parents
children
line wrap: on
line source

#!/bin/bash -x

if [ -z "$1" ]; then echo "Usage: $0 Release; where Release = karmic or else"; exit 1; fi

aptitude install unattended-upgrades 
dpkg-reconfigure -plow unattended-upgrades
mv /etc/apt/apt.conf.d/50unattended-upgrades /etc/apt/apt.conf.d/50unattended-upgrades.in
head -n3 /etc/apt/apt.conf.d/50unattended-upgrades.in > /etc/apt/apt.conf.d/50unattended-upgrades
echo "	\"Ubuntu $1-updates\";" >> /etc/apt/apt.conf.d/50unattended-upgrades
awk 'NR > 3 { print; }' /etc/apt/apt.conf.d/50unattended-upgrades.in >> /etc/apt/apt.conf.d/50unattended-upgrades
rm /etc/apt/apt.conf.d/50unattended-upgrades.in

if [ -L autoupdates-install.sh ]; then echo "Removing the link"; rm autoupdates-install.sh; fi 

echo "Installation terminee"

"Welcome to our mercurial repository"