linuxOS_AP05/debian/base-linaro/binary/var/lib/dpkg/info/dnsmasq-base.postrm

12 lines
272 B
Plaintext
Raw Normal View History

2025-09-26 01:40:02 +00:00
#!/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