From 789066a5cbddc5084b08c92a1fbfd78be5472879 Mon Sep 17 00:00:00 2001 From: kvaps Date: Thu, 4 May 2017 13:38:56 +0200 Subject: [PATCH] fix: dns commas --- src/etc/one-context.d/loc-11-dns##one | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/one-context.d/loc-11-dns##one b/src/etc/one-context.d/loc-11-dns##one index d195f56..464c12e 100755 --- a/src/etc/one-context.d/loc-11-dns##one +++ b/src/etc/one-context.d/loc-11-dns##one @@ -47,7 +47,7 @@ for nameserver in $nameservers; do done if [ -f /etc/sysconfig/network/config ]; then - sed -i '/^NETCONFIG_DNS_STATIC_SERVERS=/ s/=.*$/="'$nameservers'"/' /etc/sysconfig/network/config + sed -i "/^NETCONFIG_DNS_STATIC_SERVERS=/ s/=.*$/=\"$nameservers\"/" /etc/sysconfig/network/config fi [ -z "$searchdomains" ] && exit 0 @@ -55,5 +55,5 @@ fi echo search $searchdomains >> /etc/resolv.conf if [ -f /etc/sysconfig/network/config ]; then - sed -i '/^NETCONFIG_DNS_STATIC_SEARCHLIST=/ s/=.*$/="'$searchdomains'"/' /etc/sysconfig/network/config + sed -i "/^NETCONFIG_DNS_STATIC_SEARCHLIST=/ s/=.*$/=\"$searchdomains\"/" /etc/sysconfig/network/config fi