diff --git a/data/hooks/conf_regen/01-yunohost b/data/hooks/conf_regen/01-yunohost index 96b62fe67..f8bef0614 100755 --- a/data/hooks/conf_regen/01-yunohost +++ b/data/hooks/conf_regen/01-yunohost @@ -65,7 +65,7 @@ with open('/etc/yunohost/services.yml') as f: updated = False for service, conf in new_services.items(): # remove service with empty conf - if not conf: + if conf is None: if service in services: print("removing '{0}' from services".format(service)) del services[service] diff --git a/data/templates/yunohost/services.yml b/data/templates/yunohost/services.yml index bbe67972e..514cf5258 100644 --- a/data/templates/yunohost/services.yml +++ b/data/templates/yunohost/services.yml @@ -50,7 +50,7 @@ yunohost-firewall: nslcd: status: service log: /var/log/syslog -nsswitch: null +nsswitch: {} bind9: null tahoe-lafs: null memcached: null