mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2025-01-18 19:11:14 +01:00
Fixed if statement in docker-cmd.sh for pdns-recursor (#16)
This commit is contained in:
parent
7362d8bc1f
commit
90b41b92d3
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export PDNS_local_port PDNS_local_address
|
||||||
envtpl < /recursor.conf.tpl > /etc/pdns/recursor.conf
|
envtpl < /recursor.conf.tpl > /etc/pdns/recursor.conf
|
||||||
|
|
||||||
# fix config right
|
# fix config right
|
||||||
if [ getent passwd | grep -c '^pdns-recursor:' ]; then
|
if getent passwd | grep -q '^pdns-recursor:'; then
|
||||||
# Fedora user
|
# Fedora user
|
||||||
chown pdns-recursor:pdns-recursor /etc/pdns/recursor.conf
|
chown pdns-recursor:pdns-recursor /etc/pdns/recursor.conf
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue