linuxOS_AP05/debian/base-linaro/binary/var/lib/dpkg/info/dnsmasq-base.postrm
2025-09-26 09:40:02 +08:00

12 lines
272 B
Bash
Executable File

#!/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