Added space behind :53 to only match port 53

This commit is contained in:
DL6ER 2016-12-28 20:32:56 +01:00 committed by GitHub
parent 9170488b0a
commit d0cd39a25f

2
pihole
View file

@ -185,7 +185,7 @@ piholeLogging() {
}
piholeStatus() {
if [[ $(netstat -plnt | grep -c ':53') > 0 ]]; then
if [[ $(netstat -plnt | grep -c ':53 ') > 0 ]]; then
if [[ "${1}" != "web" ]] ; then
echo "::: DNS service is running"
fi