snapcast/client/debian/snapclient.postinst
2016-10-15 11:18:46 +02:00

16 lines
253 B
Bash

#!/bin/sh
set -e
umask 0022
ACTION="$1"
VERSION="$2"
if [ "$ACTION" = "configure" ]; then
# add the snapcast user
if ! getent passwd snapcast >/dev/null; then
adduser --quiet --ingroup audio --system --no-create-home snapcast
fi
fi
#DEBHELPER#