From f280b0d146006fa27d1e5fd382c159b1fbfad68e Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 4 Nov 2023 04:17:10 +0100 Subject: [PATCH] add perseus udev group --- debian/openwebrx.postinst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/openwebrx.postinst b/debian/openwebrx.postinst index 84044909..e78b4630 100755 --- a/debian/openwebrx.postinst +++ b/debian/openwebrx.postinst @@ -14,6 +14,10 @@ case "$1" in adduser --system --group --no-create-home --home /nonexistent --quiet "${OWRX_USER}" usermod -aG plugdev "${OWRX_USER}" + # ensure group exists first (dependency is optional) + addgroup --system --quiet perseususb + usermod -aG perseususb "${OWRX_USER}" + # create OpenWebRX data directory and set the correct permissions if [ ! -d "${OWRX_DATADIR}" ] && [ ! -L "${OWRX_DATADIR}" ]; then mkdir "${OWRX_DATADIR}"; fi chown "${OWRX_USER}": ${OWRX_DATADIR}