Skip to content

Commit

Permalink
Merge pull request openbmc#28 from raviteja-b/avahiGroupIssue
Browse files Browse the repository at this point in the history
Avahi:Fix to check and create avahi group and user before starting avahi
  • Loading branch information
rfrandse committed Sep 18, 2019
2 parents bd3ebb8 + 4c19d79 commit c86dab8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
@@ -0,0 +1,3 @@
[Service]
ExecStartPre=/bin/sh -c "grep -q avahi: /etc/group || /usr/sbin/addgroup --system avahi
grep -q avahi: /etc/passwd || /usr/sbin/adduser --system --no-create-home --ingroup avahi avahi"
11 changes: 11 additions & 0 deletions recipes-connectivity/avahi/avahi_%.bbappend
@@ -0,0 +1,11 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/avahi-daemon:"

SRC_URI += "file://avahi-daemon-override.conf"

FILES_avahi-daemon_append += "${systemd_system_unitdir}/avahi-daemon.service.d/avahi-daemon-override.conf"

do_install_append() {

install -Dm 0755 ${WORKDIR}/avahi-daemon-override.conf \
${D}${systemd_system_unitdir}/avahi-daemon.service.d/avahi-daemon-override.conf
}

0 comments on commit c86dab8

Please sign in to comment.