26 lines
608 B
Plaintext
26 lines
608 B
Plaintext
#!/bin/bash
|
|
|
|
if [ $UID -ne 0 ]; then
|
|
sudo $0
|
|
exit
|
|
fi
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
export PAGER=cat
|
|
|
|
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
|
|
|
|
shutdown -r now
|
|
|