2 # Upgrade from squeeze to wheezy
4 Make sure to coordinate with whoever uses the host, be it the buildd
5 operator, the QA team, the ftp team or just announce it if it's a
12 touch NO-DAEMON-PLEASE EXIT-DAEMON-PLEASE && exit
14 now wait for the buildd to quit
18 * answer question to libc6 "Restart services automaticaly" with "yes"
19 * answer "Yes" to changes of /etc/default/rcS, [BR#694928](http://bugs.debian.org/694928)
20 * and change "FSCKFIX=yes" afterwards, at least on hardware without remote access (like arm*)
21 * say no to other other questions.
25 sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/debian.list /etc/apt/sources.list.d/security.list &&
27 apt-get install dpkg apt samhain &&
28 service samhain stop &&
29 apt-get dist-upgrade &&
30 rm /var/state/samhain/samhain_file &&
31 samhain --foreground -t init -p none -s none -l none -m none &&
32 (puppet agent -t || true) &&
33 apt-get dist-upgrade &&
34 c_rehash /etc/ssl/debian/certs &&
35 c_rehash /etc/exim4/ssl &&
36 apt-get --purge autoremove &&
37 while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done &&
38 apt-get purge liblzma2 lzma &&
42 if /etc/apache2/apache2.conf was not changed, remove the include for httpd.conf.
44 purge removed packages
45 dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
46 echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
47 echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
51 /usr/lib/nagios/plugins/dsa-check-packages | tr -d ,
52 apt-get --purge autoremove
55 apt-get install firmware-linux
57 update dsa-nagios.git (add host to wheezy hostgroup)
61 verify ipv6 routing still works.
65 samhain --foreground -t update -p none -s none -l none -m none