=== modified file 'debian/mandos-client.postinst' --- debian/mandos-client.postinst 2009-01-18 00:16:57 +0000 +++ debian/mandos-client.postinst 2009-05-17 02:50:03 +0000 @@ -21,6 +21,13 @@ if [ -x /usr/sbin/update-initramfs ]; then update-initramfs -u -k all fi + + if dpkg --compare-versions "$2" lt-nl "1.0.10-1"; then + # Make old initrd.img files unreadable too, in case they were + # created with mandos-client 1.0.8 or older. + find /boot -maxdepth 1 -name "initrd.img-*.bak"-print0 \ + | xargs --null --no-run-if-empty chmod o-r + fi } # Add user and group @@ -54,9 +61,9 @@ case "$1" in configure) - add_mandos_user - create_key - update_initramfs + add_mandos_user "$@" + create_key "$@" + update_initramfs "$@" ;; abort-upgrade|abort-deconfigure|abort-remove) ;;