Skip to content

Commit

Permalink
fixed run script output when blocklist setup is checked
Browse files Browse the repository at this point in the history
  • Loading branch information
Cielquan committed Nov 12, 2019
1 parent 2df906c commit 7498f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Expand Up @@ -192,9 +192,9 @@ echo -e -n "${CYAN}INFO${BLANK}: Container health status of 'pihole': " && docke
# Check if blocklist setup is finished and when then restore custom conf; timeout after 10 min
echo -e -n "${CYAN}INFO${BLANK}: Waiting for blocklist setup to finish "
for i in $(seq 1 60); do
if [ "$(docker logs pihole | grep -c "\[services.d\] done.")" -gt 0 ]; then
if [ "$(docker logs pihole 2> /dev/null | grep -c "\[services.d\] done.")" -gt 0 ]; then
echo -e -n " ${GREEN}OK${BLANK}"
echo -e "\n ${CYAN}INFO${BLANK}: Blocklists setup finished."
echo -e "\n${CYAN}INFO${BLANK}: Blocklists setup finished."
break
else
sleep 10
Expand Down

0 comments on commit 7498f82

Please sign in to comment.