/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to debian/mandos-client.postrm

  • Committer: Teddy Hogeborn
  • Date: 2022-04-24 16:54:30 UTC
  • Revision ID: teddy@recompile.se-20220424165430-m687snug7o7vz4ok
Update copyright year

* debian/copyright: Update copyright year to 2022.
* dracut-module/password-agent.c: - '' -
* dracut-module/password-agent.xml: Revert copyright year to 2020.
* intro.xml: - '' -
* mandos: Update copyright year to 2022.
* mandos-ctl: - '' -
* plugin-helpers/mandos-client-iprouteadddel.c: - '' -
* plugin-runner.c: - '' -
* plugins.d/mandos-client.c: - '' -
* plugins.d/password-prompt.c: - '' -
* plugins.d/plymouth.c: - '' -
* plugins.d/splashy.c: - '' -
* plugins.d/usplash.c: - '' -

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
update_initramfs()
33
33
{
34
34
    if command -v update-initramfs >/dev/null; then
35
 
        update-initramfs -k all -u 1>&2
 
35
        update-initramfs -k all -u
36
36
    elif command -v dracut >/dev/null; then
37
37
        # Logic taken from dracut.postinst
38
38
        for kernel in /boot/vmlinu[xz]-*; do
39
39
            kversion="${kernel#/boot/vmlinu[xz]-}"
40
40
            if [ "$kversion" != "*" ]; then
41
 
                /etc/kernel/postinst.d/dracut "$kversion" 1>&2
 
41
                /etc/kernel/postinst.d/dracut "$kversion"
42
42
            fi
43
43
        done
44
44
    fi
50
50
        ;;
51
51
 
52
52
    purge)
53
 
        shred --remove /etc/keys/mandos/seckey.txt \
54
 
            /etc/keys/mandos/tls-privkey.pem 2>/dev/null || :
 
53
        shred --remove /etc/keys/mandos/seckey.txt 2>/dev/null || :
55
54
        rm --force /etc/mandos/plugin-runner.conf \
56
55
            /etc/keys/mandos/pubkey.txt \
57
56
            /etc/keys/mandos/seckey.txt \