Fix asterisk group change

This commit is contained in:
Peter Šurda 2023-01-18 13:01:34 +08:00
parent 75bfc960b7
commit cb7e84e6fe
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95

View File

@ -76,7 +76,8 @@ define Package/$(PKG_NAME)/postinst
if [ -n "$${IPKG_INSTROOT}" ]; then
exit 0
fi
usermod -a -G audio,dialout asterisk
# Add asterisk user to audio and dialout groups
sed -i -E 's/((audio|dialout):x:[0-9+]:)/\1asterisk/' /etc/group
endef