File: unbound.postrm

package info (click to toggle)
unbound 1.6.0-2~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 20,444 kB
  • sloc: ansic: 79,862; sh: 5,040; yacc: 1,900; makefile: 1,315; python: 1,302; perl: 141
file content (16 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (10)
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#