26 lines
719 B
Plaintext
26 lines
719 B
Plaintext
#!/bin/bash
|
|
|
|
if [ $UID -ne 0 ]; then
|
|
sudo $0
|
|
exit
|
|
fi
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
export PAGER=cat
|
|
|
|
echo "deb http://backports.debian.org/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/debian-backports.list
|
|
|
|
apt-get --force-yes update
|
|
apt-get --force-yes -y remove x11-common xserver-xorg-video-all xserver-xorg-core xserver-xorg-video-radeon libgl1-mesa-dri mutt libdrm-intel1 libdrm-radeon1
|
|
apt-get --force-yes -y install deborphan
|
|
apt-get --force-yes -y remove `deborphan`
|
|
apt-get --force-yes -y dist-upgrade
|
|
apt-get --force-yes -y upgrade
|
|
apt-get install --force-yes -y rubygems1.8 puppet
|
|
apt-get remove --force-yes -y puppet facter
|
|
|
|
gem install puppet --no-ri --no-rdoc
|
|
|
|
./apply
|
|
|