mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-22 14:13:42 +00:00
REVISIT: I don't _think_ this line is nessacery. Why should gravity restart FTL if it is offline? It might be offline on purpose.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
c0e352094d
commit
ea748822ef
1 changed files with 6 additions and 6 deletions
12
gravity.sh
12
gravity.sh
|
@ -720,11 +720,11 @@ gravity_Cleanup() {
|
||||||
|
|
||||||
echo -e "${OVER} ${TICK} ${str}"
|
echo -e "${OVER} ${TICK} ${str}"
|
||||||
|
|
||||||
# Only restart DNS service if offline
|
# # Only restart DNS service if offline
|
||||||
if ! pgrep pihole-FTL &> /dev/null; then
|
# if ! pgrep pihole-FTL &> /dev/null; then
|
||||||
"${PIHOLE_COMMAND}" restartdns
|
# "${PIHOLE_COMMAND}" restartdns
|
||||||
dnsWasOffline=true
|
# dnsWasOffline=true
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# Print Pi-hole status if an error occurred
|
# Print Pi-hole status if an error occurred
|
||||||
if [[ -n "${error}" ]]; then
|
if [[ -n "${error}" ]]; then
|
||||||
|
@ -894,4 +894,4 @@ gravity_ShowCount
|
||||||
gravity_Cleanup
|
gravity_Cleanup
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
"${PIHOLE_COMMAND}" status
|
# "${PIHOLE_COMMAND}" status
|
||||||
|
|
Loading…
Reference in a new issue