Update services/sabnzbd.nix
This commit is contained in:
parent
58440af384
commit
30d9d836e4
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ c = configparser.RawConfigParser()
|
||||||
c.read(config_file)
|
c.read(config_file)
|
||||||
if not c.has_section('misc'):
|
if not c.has_section('misc'):
|
||||||
c.add_section('misc')
|
c.add_section('misc')
|
||||||
wl = c.get('misc', 'host_whitelist', fallback='')
|
wl = c.get('misc', 'host_whitelist', fallback="")
|
||||||
entries = [h.strip() for h in wl.split(',') if h.strip()]
|
entries = [h.strip() for h in wl.split(',') if h.strip()]
|
||||||
if hostname not in entries:
|
if hostname not in entries:
|
||||||
entries.append(hostname)
|
entries.append(hostname)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue