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
|
updated = False
|
||||||
for service, conf in new_services.items():
|
for service, conf in new_services.items():
|
||||||
# remove service with empty conf
|
# remove service with empty conf
|
||||||
if not conf:
|
if conf is None:
|
||||||
if service in services:
|
if service in services:
|
||||||
print("removing '{0}' from services".format(service))
|
print("removing '{0}' from services".format(service))
|
||||||
del services[service]
|
del services[service]
|
||||||
|
|
|
@ -50,7 +50,7 @@ yunohost-firewall:
|
||||||
nslcd:
|
nslcd:
|
||||||
status: service
|
status: service
|
||||||
log: /var/log/syslog
|
log: /var/log/syslog
|
||||||
nsswitch: null
|
nsswitch: {}
|
||||||
bind9: null
|
bind9: null
|
||||||
tahoe-lafs: null
|
tahoe-lafs: null
|
||||||
memcached: null
|
memcached: null
|
||||||
|
|
Loading…
Add table
Reference in a new issue