mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
In fact we probably always want to disable avahi-daemon on all systems
This commit is contained in:
parent
af3d6dd7df
commit
3a07a78068
1 changed files with 3 additions and 2 deletions
|
@ -42,10 +42,11 @@ do_post_regen() {
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
fi
|
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
|
# 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 disable avahi-daemon --now || true
|
|
||||||
sleep 2
|
|
||||||
systemctl enable yunomdns --now
|
systemctl enable yunomdns --now
|
||||||
sleep 2
|
sleep 2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue