Codebase list unbound / 153d2a01-b578-4e09-aa8a-429c3f00bb79/main debian / unbound.postrm
153d2a01-b578-4e09-aa8a-429c3f00bb79/main

Tree @153d2a01-b578-4e09-aa8a-429c3f00bb79/main (Download .tar.gz)

unbound.postrm @153d2a01-b578-4e09-aa8a-429c3f00bb79/mainraw · history · blame

#!/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#