X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Fupgrade-to-jessie.mdwn;h=c783ad439e0697716f7428166daf843e076ff6f6;hb=08348af9d0ff2f360a8719885b933bf932f76fdd;hp=cae3d779421ed73eb44be2681d0b791579025c6d;hpb=8558c98f3da0b664f4cdfa23235663d2959fbbd1;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/upgrade-to-jessie.mdwn b/input/howto/upgrade-to-jessie.mdwn index cae3d77..c783ad4 100644 --- a/input/howto/upgrade-to-jessie.mdwn +++ b/input/howto/upgrade-to-jessie.mdwn @@ -28,6 +28,7 @@ commands: samhain --foreground -t init -p none -s none -l none -m none && (puppet agent -t || true) && apt-get dist-upgrade && + apt-get purge ruby1.8 libffi5:amd64 emacs23-nox libruby1.9.1 libfilesystem-ruby1.9.1 libruby1.8 emacs23-common ruby1.9.1 emacs23-bin-common && apt-get --purge autoremove && while [ "$(deborphan -n | wc -l)" -gt 0 ] ; do apt-get purge $(deborphan -n); done && dpkg --clear-avail && @@ -71,12 +72,6 @@ apache cleanup: replace all order allow,deny, allow from all with Require all granted -re-init samhain - - (puppet agent -t || true) && - (puppet agent -t || true) && - samhain --foreground -t init -p none -s none -l none -m none - Add the new ed25519 ssh host key: run 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 @@ -84,4 +79,9 @@ Add the new ed25519 ssh host key: update dsa-nagios.git (add host to jessie hostgroup) -reboot. +re-init samhain and finish with a reboot + + (puppet agent -t || true) && + (puppet agent -t || true) && + samhain --foreground -t update -p none -s none -l none -m none && + /sbin/reboot