1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-01-03 12:40:56 +00:00

Fix pihole status on not-ready states (#5747)

This commit is contained in:
Dominik 2024-09-02 19:18:05 +02:00 committed by GitHub
commit 80143325e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
pihole
View File

@ -346,7 +346,7 @@ statusFunc() {
"web") echo "-1";;
*) echo -e " ${CROSS} DNS service is NOT running";;
esac
return 0
exit 0
else
# get the DNS port pihole-FTL is listening on
port="$(getFTLConfigValue dns.port)"
@ -355,7 +355,7 @@ statusFunc() {
"web") echo "-1";;
*) echo -e " ${CROSS} DNS service is NOT listening";;
esac
return 0
exit 0
else
if [[ "${1}" != "web" ]]; then
echo -e " ${TICK} FTL is listening on port ${port}"
@ -377,6 +377,7 @@ statusFunc() {
*) echo -e " ${CROSS} Pi-hole blocking is disabled";;
esac
fi
exit 0
}