Fix wrong condition in dhcpcd configuration in Jessie.

This commit is contained in:
Tomasz Rybak 2014-07-06 19:13:46 +02:00
parent 5433963f4e
commit ebee46b57f

View file

@ -12,7 +12,7 @@ class EnableDHCPCDDNS(Task):
def run(cls, info):
# The dhcp client that ships with debian sets the DNS servers per default.
# For dhcpcd in Wheezy and earlier we need to configure it to do that.
if info.release_codename in {'jessie', 'sid'}:
if info.release_codename not in {'jessie', 'sid'}:
from bootstrapvz.common.tools import sed_i
dhcpcd = os.path.join(info.root, 'etc/default/dhcpcd')
sed_i(dhcpcd, '^#*SET_DNS=.*', 'SET_DNS=\'yes\'')