From 50188ae265808139538ea90c6f2854f97d21a2b7 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 20 Mar 2017 01:49:27 +0100 Subject: [PATCH] [fix] only remove a service if it is setted to null --- data/hooks/conf_regen/01-yunohost | 2 +- data/templates/yunohost/services.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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