From: ng0 Date: Thu, 17 Oct 2019 14:10:55 +0000 (+0000) Subject: test_gnunet_dns.sh: check if user 'nobody' exists and return 77 if not. X-Git-Tag: v0.11.7~36 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c08cc5aeb3b2daa8711c86162575953a271e6b3e;p=oweals%2Fgnunet.git test_gnunet_dns.sh: check if user 'nobody' exists and return 77 if not. --- diff --git a/src/dns/test_gnunet_dns.sh b/src/dns/test_gnunet_dns.sh index 0fa338c9b..e0fcb711d 100755 --- a/src/dns/test_gnunet_dns.sh +++ b/src/dns/test_gnunet_dns.sh @@ -42,6 +42,12 @@ then exit 77 fi +if test ! `id nobody`; +then + echo "This tests requires a user account 'nobody'. Skipping." + exit 77 +fi + export PATH=".:$PATH" gnunet-service-dns -c dns.conf & gnunet-dns-redirector -c dns.conf -4 127.0.0.1 &