mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] only remove a service if it is setted to null
This commit is contained in:
parent
a18486df05
commit
50188ae265
2 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
|
@ -50,7 +50,7 @@ yunohost-firewall:
|
|||
nslcd:
|
||||
status: service
|
||||
log: /var/log/syslog
|
||||
nsswitch: null
|
||||
nsswitch: {}
|
||||
bind9: null
|
||||
tahoe-lafs: null
|
||||
memcached: null
|
||||
|
|
Loading…
Add table
Reference in a new issue