From 90b41b92d36d5d7f2ba4c722a999d786c3349c7b Mon Sep 17 00:00:00 2001 From: Andrei Neagoe Date: Thu, 25 Oct 2018 14:51:29 +0200 Subject: [PATCH] Fixed if statement in docker-cmd.sh for pdns-recursor (#16) --- pdns-recursor/docker-cmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns-recursor/docker-cmd.sh b/pdns-recursor/docker-cmd.sh index fc205f5..e373f56 100755 --- a/pdns-recursor/docker-cmd.sh +++ b/pdns-recursor/docker-cmd.sh @@ -12,7 +12,7 @@ export PDNS_local_port PDNS_local_address envtpl < /recursor.conf.tpl > /etc/pdns/recursor.conf # fix config right -if [ getent passwd | grep -c '^pdns-recursor:' ]; then +if getent passwd | grep -q '^pdns-recursor:'; then # Fedora user chown pdns-recursor:pdns-recursor /etc/pdns/recursor.conf else