1 2 3 4 5 6 7 8 9
post_install() { nextdns install } post_remove() { if nextdns status > /dev/null 2>&1; then nextdns uninstall fi }