File: unbound.postrm

package info (click to toggle)
unbound 1.13.1-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 27,604 kB
  • sloc: ansic: 110,494; sh: 6,028; yacc: 3,391; python: 1,945; makefile: 1,689; awk: 161; perl: 158; xml: 36
file content (16 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

if [ "$1" = remove ]; then
    rm -rf /var/lib/unbound
    deluser --quiet unbound >/dev/null || true
fi

if [ "$1" = purge ]; then
    rm -f /etc/unbound/unbound_control.key \
        /etc/unbound/unbound_control.pem \
        /etc/unbound/unbound_server.key \
        /etc/unbound/unbound_server.pem
    rm -f /var/lib/unbound/root.key
fi

#DEBHELPER#