mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
12 lines
272 B
Bash
12 lines
272 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
if [ purge = "$1" ]; then
|
|
if [ -x "$(command -v deluser)" ]; then
|
|
deluser --quiet --system dnsmasq > /dev/null || true
|
|
else
|
|
echo >&2 "not removing dnsmasq system account because deluser command was not found"
|
|
fi
|
|
rm -rf /run/dnsmasq
|
|
fi
|