mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Auto-enable yunomdns on legacy systems
This commit is contained in:
parent
e493b89d6a
commit
ecf136d5db
1 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,12 @@ do_post_regen() {
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 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
|
||||||
|
fi
|
||||||
|
|
||||||
[[ -z "$regen_conf_files" ]] \
|
[[ -z "$regen_conf_files" ]] \
|
||||||
|| systemctl restart yunomdns
|
|| systemctl restart yunomdns
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue