Also create nut user when installing nut-client package and do not delete it on purge anymore (Closes: #682000)
This commit is contained in:
parent
1cd02baa2d
commit
a6634bc58e
4 changed files with 64 additions and 8 deletions
6
debian/nut-server.postrm
vendored
6
debian/nut-server.postrm
vendored
|
|
@ -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
|
||||
;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue