lxc more fixes (lxc.set_dns)

This fixes #23833

Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
This commit is contained in:
Mathieu Le Marec - Pasquet 2015-05-17 18:50:04 +02:00
parent fdb64245d4
commit e96e345799

View file

@ -2739,6 +2739,7 @@ def set_dns(name, dnsservers=None, searchdomains=None):
script = '/sbin/{0}_dns.sh'.format(rstr)
DNS_SCRIPT = "\n".join([
# 'set -x',
'#!/usr/bin/env bash',
'if [ -h /etc/resolv.conf ];then',
' if [ "x$(readlink /etc/resolv.conf)"'
' = "x../run/resolvconf/resolv.conf" ];then',