Pi.Alert 3.01

#106
This commit is contained in:
pucherot
2021-04-22 22:03:48 +02:00
parent 4015305bd7
commit 94d205bd59
4 changed files with 11 additions and 4 deletions

View File

@@ -23,7 +23,8 @@
LOG="pialert_install_`date +"%Y-%m-%d_%H-%M"`.log"
MAIN_IP=`ip -o route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'`
# MAIN_IP=`ip -o route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'`
MAIN_IP=`ip -o route get 1 | sed -n 's/^.*src \([^ ]*\).*$/\1/;q'`
PIHOLE_INSTALL=false
PIHOLE_ACTIVE=false