mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
add extra protection for perseus group
This commit is contained in:
parent
27b4ec5871
commit
8da92f5788
5
debian/openwebrx.postinst
vendored
5
debian/openwebrx.postinst
vendored
|
|
@ -15,7 +15,10 @@ case "$1" in
|
|||
usermod -aG plugdev "${OWRX_USER}"
|
||||
|
||||
# ensure group exists first (dependency is optional)
|
||||
addgroup --system --quiet perseususb
|
||||
# addgroup will error out if the group exists, but is not a system group. it doesn't matter for the intended purpose, but we need extra protection for this case.
|
||||
if [ ! $(getent group perseususb) ]; then
|
||||
addgroup --system --quiet perseususb
|
||||
fi
|
||||
usermod -aG perseususb "${OWRX_USER}"
|
||||
|
||||
# create OpenWebRX data directory and set the correct permissions
|
||||
|
|
|
|||
Loading…
Reference in a new issue