1 # Upgrade from squeeze to wheezy
3 Make sure to coordinate with whoever uses the host, be it the buildd
4 operator, the QA team, the ftp team or just announce it if it's a
11 touch NO-DAEMON-PLEASE EXIT-DAEMON-PLEASE && exit
13 now wait for the buildd to quit
17 * answer question to libc6 "Restart services automaticaly" with "yes"
18 * say no to other other questions.
22 sed -i "s#wheezy#jessie#g" /etc/apt/sources.list.d/debian.list /etc/apt/sources.list.d/security.list &&
24 if [ -e /etc/apt/sources.list.d/buildd.debian.org.list ]; then
25 sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list.d/buildd.debian.org.list
28 apt-get install dpkg apt samhain &&
29 service samhain stop &&
30 apt-get dist-upgrade &&
31 rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file &&
32 samhain --foreground -t init -p none -s none -l none -m none &&
33 (puppet agent -t || true) &&
34 apt-get dist-upgrade &&
35 apt-get --purge autoremove &&
36 while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done &&
41 purge removed packages
43 dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
44 echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
45 echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
49 /usr/lib/nagios/plugins/dsa-check-packages | tr -d ,
51 apt-get --purge autoremove
55 (puppet agent -t || true) &&
56 (puppet agent -t || true) &&
57 samhain --foreground -t init -p none -s none -l none -m none
59 Add the new ed25519 ssh host key:
61 echo; echo "cat << EOF | ldapmodify -ZZ -x -D uid="\$USER",ou=users,dc=debian,dc=org -W -h db.debian.org"; echo "dn: host=`hostname`,ou=hosts,dc=debian,dc=org"; echo "changetype: modify"; echo "add: sshRSAHostKey"; echo "sshRSAHostKey: `cat /etc/ssh/ssh_host_ed25519_key.pub `"; echo; echo "EOF"; echo
62 and paste it on draghi.
64 update dsa-nagios.git (add host to jessie hostgroup)