avahi: Remove default service definitions

Removes default 'example' service definitions that
are included by Avahi 0.7+. These conflict with
our balenaOS advertised services, causing potential
issues.

Connects-to: #957
Change-type: patch
Signed-off-by: Heds Simons <heds@balena.io>
This commit is contained in:
Heds Simons 2019-04-05 12:32:06 +01:00
parent 08fe5504ce
commit 24ba07571c
No known key found for this signature in database
GPG Key ID: 2A079CB76EC8B3D4

View File

@ -2,7 +2,9 @@
set -o errexit
# Start Avahi to allow MDNS lookups
# Start Avahi to allow MDNS lookups and remove
# any pre-defined services
rm -f /etc/avahi/services/*
mkdir -p /var/run/dbus
rm -f /var/run/avahi-daemon/pid
rm -f /var/run/dbus/pid