asterisk: don't start with explicit group
authorSebastian Kemper <sebastian_ml@gmx.net>
Fri, 22 Oct 2021 22:12:13 +0000 (00:12 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Tue, 9 Nov 2021 18:12:52 +0000 (19:12 +0100)
Currently the asterisk init script starts the service with the group
"asterisk". Like this, even if the asterisk user is part of other groups,
asterisk will not be able to make use of them. So for instance if you add the
user to the group "dialout", asterisk will run under group "asterisk", instead
of "asterisk" _and_ "dialout".

Not specifying the group gets rid of this limitation.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 9017e04b8755b298649280b3d4491666f1b0c94b)

net/asterisk/Makefile
net/asterisk/files/asterisk.init

index 2293a573f951d95d60822afffecb838bac52d9a4..8cc8755df63dba70201ef1115ecda7788e285c63 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=asterisk
 PKG_VERSION:=18.5.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/asterisk/releases
index 256a3cf727125c2fe3745a017c33e4c7e374d4f7..0e267e7144225345be7760a815ed6abbd9267ab9 100644 (file)
@@ -51,7 +51,6 @@ start_service() {
   procd_open_instance
   procd_set_param command $COMMAND
   procd_append_param command \
-    -G "$NAME" \
     -U "$NAME" \
     $options \
     -f