- prio=$(ls -1 S*samhain | cut -b 2-3); mv S${prio}samhain K${prio}samhain # so it stays down
-
-
-maybe turn off exim
-
- cd /etc/rc2.d/
- service exim4 stop &&
- prio=$(ls -1 S*exim4* | cut -b 2-3); mv S${prio}exim4 K${prio}exim4 # so it stays down
-
-
-install deborphan, clean up
-
- apt-get autoremove
- apt-get install deborphan dialog
- orphaner
- orphaner -n
- orphaner -a
- orphaner -a -n
-
-purge removed packages
-
- dpkg --get-selections | awk '$2=="deinstall" {print $1}' &&
- echo "really purge these [y/N]?" && read ans && [ "$ans" = "y" ] && dpkg --purge `dpkg --get-selections | awk '$2=="deinstall" {print $1}'` &&
- echo "These are not at install:" && dpkg --get-selections | awk '$2!="install" {print $1}'
-
-change sources list entries to wheezy:
-
- cd /etc/apt/sources.list.d && sed -i "s#squeeze#wheezy#g" debian.list && sed -i "s#squeeze#wheezy#g" volatile.list && sed -i "s#squeeze#wheezy#g" security.list
-
-update apt list
-
- apt-get update
-
-upgrade
-
- apt-get install locales-all apt dpkg base-files
+ apt-get dist-upgrade &&
+ rm /var/state/samhain/samhain_file &&
+ samhain --foreground -t init -p none -s none -l none -m none &&
+ (puppet agent -t || true) &&
+ apt-get dist-upgrade &&
+ c_rehash /etc/ssl/debian/certs &&
+ apt-get --purge autoremove