Merge pull request #1555 from selfhoster1312/no-disable-avahi

Don't disable avahi-daemon by force in conf_regen
This commit is contained in:
Alexandre Aubin 2023-01-03 16:01:52 +01:00 committed by GitHub
commit b3e56ce763
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,9 +53,6 @@ do_post_regen() {
systemctl daemon-reload systemctl daemon-reload
fi fi
systemctl disable avahi-daemon.socket --quiet --now 2>/dev/null || true
systemctl disable avahi-daemon --quiet --now 2>/dev/null || true
# Legacy stuff to enable the new yunomdns service on legacy systems # 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 if [[ -e /etc/avahi/avahi-daemon.conf ]] && grep -q 'yunohost' /etc/avahi/avahi-daemon.conf; then
systemctl enable yunomdns --now --quiet systemctl enable yunomdns --now --quiet