mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Force yunohost to forget about avahi-daemon files
This commit is contained in:
parent
be41ab92c4
commit
8a82fe0392
1 changed files with 7 additions and 0 deletions
|
@ -135,6 +135,9 @@ def regen_conf(
|
||||||
if "glances" in names:
|
if "glances" in names:
|
||||||
names.remove("glances")
|
names.remove("glances")
|
||||||
|
|
||||||
|
if "avahi-daemon" in names:
|
||||||
|
names.remove("avahi-daemon")
|
||||||
|
|
||||||
# [Optimization] We compute and feed the domain list to the conf regen
|
# [Optimization] We compute and feed the domain list to the conf regen
|
||||||
# hooks to avoid having to call "yunohost domain list" so many times which
|
# hooks to avoid having to call "yunohost domain list" so many times which
|
||||||
# ends up in wasted time (about 3~5 seconds per call on a RPi2)
|
# ends up in wasted time (about 3~5 seconds per call on a RPi2)
|
||||||
|
@ -455,6 +458,10 @@ def _save_regenconf_infos(infos):
|
||||||
if "glances" in infos:
|
if "glances" in infos:
|
||||||
del infos["glances"]
|
del infos["glances"]
|
||||||
|
|
||||||
|
# Ugly hack to get rid of legacy avahi stuff
|
||||||
|
if "avahi-daemon" in infos:
|
||||||
|
del infos["avahi-daemon"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(REGEN_CONF_FILE, "w") as f:
|
with open(REGEN_CONF_FILE, "w") as f:
|
||||||
yaml.safe_dump(infos, f, default_flow_style=False)
|
yaml.safe_dump(infos, f, default_flow_style=False)
|
||||||
|
|
Loading…
Add table
Reference in a new issue