mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
lxc more fixes (lxc.set_dns)
This fixes #23833 Signed-off-by: Mathieu Le Marec - Pasquet <kiorky@cryptelium.net>
This commit is contained in:
parent
fdb64245d4
commit
e96e345799
1 changed files with 1 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue