Force-disable old avahi-daemon

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

View file

@ -44,7 +44,10 @@ do_post_regen() {
# 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 enable yunomdns
systemctl disable avahi-daemon --now || true
sleep 2
systemctl enable yunomdns --now
sleep 2
fi
[[ -z "$regen_conf_files" ]] \