run an explicit apt-get update after puppet
[mirror/dsa-wiki.git] / input / howto / upgrade-to-jessie.mdwn
index 0892006..2254092 100644 (file)
@@ -27,6 +27,7 @@ commands:
        rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file &&
        samhain --foreground -t init -p none -s none -l none -m none &&
        (puppet agent -t || true) &&
+       apt-get update &&
        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 &&
@@ -83,5 +84,6 @@ re-init samhain and finish with a reboot
 
        (puppet agent -t || true) &&
        (puppet agent -t || true) &&
-       samhain --foreground -t init -p none -s none -l none -m none &&
+       (puppet agent -t || true) &&
+       samhain --foreground -t update -p none -s none -l none -m none &&
        /sbin/reboot