aboutsummaryrefslogtreecommitdiff
path: root/uninstall.sh
blob: 55e1f3e3f147e6c9610fa216c2c806582ae38eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# run as root, obviously

# revert what was done in setup.sh
userdel 0tdns

# if told to - also revert what was done in install.sh
if [ "x$1" = "x--delete-files" ]; then
    rm -r /var/lib/0tdns/
    rm -r /etc/netns/0tdns*
    rm /usr/sbin/hourly.sh /usr/sbin/hourly.py
    rm -r /etc/0tdns
fi