Fixed if statement in docker-cmd.sh for pdns-recursor (#16)

This commit is contained in:
Andrei Neagoe 2018-10-25 14:51:29 +02:00 committed by Peter Schiffer
parent 7362d8bc1f
commit 90b41b92d3

View file

@ -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