2 # Upgrade from lenny to squeeze
6 /etc/init.d/samhain stop
11 /etc/init.d/exim4 stop
12 mv /etc/rc2.d/S20exim4 /etc/rc2.d/K20exim4 # so it stays down
15 install deborphan, clean up
17 apt-get install deborphan dialog
24 purge removed packages
26 dpkg --get-selections | awk '$2!="install" {print $1}'
27 echo "really purge these [y/N]?"; read ans; [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2!="install" {print $1}'`
29 update dsa-puppet.git (add to squeeze list in local.yaml)
36 change sources list entries to squeeze:
38 mirror=`cat /etc/apt/sources.list.d/debian.list | awk '/debian/ {print $2; exit}'`
39 echo "Mirror is $mirror"; echo "Fix stuff if this seems wrong"; echo "XXXXXXXXXXXXXXXXXXXXXXX"
40 echo "## VERIFY THE MIRROR IS CORRECT ##"; read
43 write new sources.list.d/ entries:
45 cd /etc/apt/sources.list.d && sed -i "s#lenny#squeeze#g" > debian.list
54 apt-get install locales-all
62 reject changes to /etc/pam.d/sudo (puppet will install a new file later anyway)
64 reject changes to /etc/munin/plugin-conf.d/munin-node (puppet will install a new file later anyway)
66 * keep local (i.e. reject (N)):
67 * all changes relating to exim (in /etc/exim4 and in logrotate)
69 * /etc/nagios/nrpe.cfg
70 * /etc/samhain/samhainrc
71 * /etc/munin/munin-node.conf
72 * /etc/logrotate.d/apache2
73 * /etc/apache2/apache2.conf
74 * /etc/apache2/ports.conf
76 update nagios.git (add host to squeeze hostgroup)
78 check for obsolete packages
80 /usr/lib/nagios/plugins/dsa-check-packages
90 purge removed packages
92 dpkg --get-selections | awk '$2!="install" {print $1}'
93 echo "really purge these [y/N]?"; read ans; [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2!="install" {print $1}'`
99 mv /etc/rc2.d/K20exim4 /etc/rc2.d/S20exim4
100 env -i /etc/init.d/exim4 start