snapcast/client/debian/snapclient.postinst
2017-03-04 14:27:31 +01:00

16 lines
261 B
Bash

#!/bin/sh
set -e
umask 0022
ACTION="$1"
VERSION="$2"
if [ "$ACTION" = "configure" ]; then
# add the snapclient user
if ! getent passwd snapclient >/dev/null; then
useradd --gid audio --system --home-dir /var/lib/snapclient snapclient
fi
fi
#DEBHELPER#