update readme
[0tDNS.git] / uninstall.sh
blob7c14cba7a243a619fa334ca47a10e03a2df46303
1 #!/bin/sh
3 # run as root, obviously
5 # revert what was done in setup.sh
6 userdel 0tdns
8 # if told to - also revert what was done in install.sh
9 if [ "x$1" = "x--delete-files" ]; then
10 rm -r /var/lib/0tdns/
11 rm -r /etc/netns/0tdns*
12 rm /usr/sbin/hourly.sh /usr/sbin/hourly.py
13 rm -r /etc/0tdns
14 rm /usr/lib/python3/dist-packages/ztdns_db_connectivity.py