1
0
Fork 0
mirror of https://github.com/badaix/snapcast synced 2025-04-25 22:01:07 +02:00
snapcast/extras/package/debian/snapclient.postrm
2023-02-14 07:19:17 +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