gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 19/141: add nameserver to /etc/resolv only if not there y


From: gnunet
Subject: [taler-grid5k] 19/141: add nameserver to /etc/resolv only if not there yet
Date: Thu, 18 Nov 2021 14:49:20 +0100

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit 52705408eb0f04f01ae4e6dba689bc201fa6174f
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Mon Oct 4 00:00:43 2021 +0200

    add nameserver to /etc/resolv only if not there yet
---
 jfed/setup.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/jfed/setup.sh b/jfed/setup.sh
index 02403c1..14f929c 100755
--- a/jfed/setup.sh
+++ b/jfed/setup.sh
@@ -45,8 +45,10 @@ key "ddns-key.perf.taler" {
 };
 EOF
   
-  sed -i "3i\\
+  if ! grep -Fxq "nameserver ${NS_IP}" /etc/resolv.conf ; then
+    sed -i "3i\\
 nameserver ${NS_IP}" /etc/resolv.conf
+  fi
 
   # wait for the dns to be initialized before continuing
   sleep 10

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]