avahi: Fix bug #13017 - - dbus[n]: Unknown group "netdev" in message bus configuration file

Message ID 20221211123330.5155-1-adolf.belka@ipfire.org
State Accepted
Commit 15214970e65ae371852305c97743205803d0847e
Headers
Series avahi: Fix bug #13017 - - dbus[n]: Unknown group "netdev" in message bus configuration file |

Commit Message

Adolf Belka Dec. 11, 2022, 12:33 p.m. UTC
  - add command into avahi install.sh paks file to add netdev group if it doesn't exist
- Update avahi PAK_VER to ensure that change is shipped

Tested-by: Jon Murphy <jon.murphy@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 lfs/avahi                 | 4 ++--
 src/paks/avahi/install.sh | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
  

Patch

diff --git a/lfs/avahi b/lfs/avahi
index 1628fe17b..17857bfe3 100644
--- a/lfs/avahi
+++ b/lfs/avahi
@@ -1,7 +1,7 @@ 
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
+# Copyright (C) 2007-2022  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -34,7 +34,7 @@  DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET = $(DIR_INFO)/$(THISAPP)
 PROG       = avahi
-PAK_VER    = 10
+PAK_VER    = 11
 
 DEPS       = dbus libdaemon
 
diff --git a/src/paks/avahi/install.sh b/src/paks/avahi/install.sh
index 9ec3050a1..63627a4db 100644
--- a/src/paks/avahi/install.sh
+++ b/src/paks/avahi/install.sh
@@ -28,6 +28,7 @@  getent group avahi >/dev/null || groupadd -r avahi
 getent passwd avahi >/dev/null || \
       useradd -r -g avahi -d /var/run/avahi-daemon -s /sbin/nologin \
       -c "Avahi mDNS daemon" avahi
+getent group netdev > /dev/null || groupadd -r netdev
 
 extract_files
 ln -svf  ../init.d/avahi /etc/rc.d/rc3.d/S65avahi