snapcast/debian/snapclient.postrm
badaix 09bd4c3bf7 Remove underscore from usernames
Cleanup init scripts, use $USERNAME and $HOMDIR variables
2019-11-20 22:25:41 +01:00

18 lines
334 B
Bash

#!/bin/sh
set -e
#DEBHELPER#
USERNAME=snapclient
HOMEDIR=/var/lib/snapclient
if [ "$1" = "purge" ]; then
rm -r $HOMEDIR
if [ -x "$(command -v deluser)" ]; then
deluser --quiet --system $USERNAME > /dev/null || true
else
echo >&2 "not removing $USERNAME system account because deluser command was not found"
fi
fi