In fact we probably always want to disable avahi-daemon on all systems

This commit is contained in:
Alexandre Aubin 2021-10-17 20:37:27 +02:00 committed by GitHub
parent af3d6dd7df
commit 3a07a78068
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,10 +42,11 @@ do_post_regen() {
systemctl daemon-reload
fi
systemctl disable avahi-daemon.socket --now 2>&1|| true
systemctl disable avahi-daemon --now 2>&1 || true
# Legacy stuff to enable the new yunomdns service on legacy systems
if [[ -e /etc/avahi/avahi-daemon.conf ]] && grep -q 'yunohost' /etc/avahi/avahi-daemon.conf; then
systemctl disable avahi-daemon --now || true
sleep 2
systemctl enable yunomdns --now
sleep 2
fi