Also create nut user when installing nut-client package and do not delete it on purge anymore (Closes: #682000)

This commit is contained in:
Laurent Bigonville 2012-08-09 21:21:03 +02:00
parent 1cd02baa2d
commit a6634bc58e
4 changed files with 64 additions and 8 deletions

View file

@ -14,12 +14,6 @@ case "$1" in
rm -f /etc/udev/rules.d/025_nut-usbups.rules
rm -f /etc/udev/rules.d/52_nut-usbups.rules
rm -f /etc/udev/rules.d/52-nut-usbups.rules
# remove the nut user
if [ -x "$(command -v deluser)" ]; then
deluser --quiet --system nut > /dev/null || true
else
echo >&2 "not removing nut system account because deluser command was not found"
fi
# handle a dpkg bug
[ -d /etc/nut ] && rmdir --ignore-fail-on-non-empty /etc/nut >/dev/null 2>&1
;;