samhain moved its statefile
authorPeter Palfrader <peter@palfrader.org>
Tue, 9 Dec 2014 19:59:05 +0000 (20:59 +0100)
committerPeter Palfrader <peter@palfrader.org>
Tue, 9 Dec 2014 19:59:05 +0000 (20:59 +0100)
input/howto/new-machine.creole

index 66e65f0..a8cb69c 100644 (file)
@@ -30,6 +30,7 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup
 
 * on the host, run ud-replicate and check if it worked
 {{{
+    apt-get update &&
     apt-get install -y --no-install-recommends userdir-ldap &&
     ud-replicate &&
     id weasel
@@ -76,7 +77,7 @@ Note: this has recently been changed to rely more on [[puppet|howto/puppet-setup
   apt-get install -y samhain &&
   ( puppet agent --no-daemonize --onetime || true ) &&
   service samhain stop &&
-  rm /var/state/samhain/samhain_file &&
+  rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file &&
   samhain --foreground -t init -p none -s none -l none -m none &&
   service samhain start
 }}}