Update defaults.inc
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.8.16-12192024'
|
VERS='2.8.17a-12212024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report test '
|
noheader=' update service dailytemp confsync -r -report test '
|
||||||
|
|
||||||
@@ -30,6 +30,7 @@ PW_LOGPOWER=${PW_LOGFOLDER}/log-power
|
|||||||
M_SRVCOPT=(start stop restart reload enable disable)
|
M_SRVCOPT=(start stop restart reload enable disable)
|
||||||
|
|
||||||
source ${PW_FOLDER}/conf/settings.conf
|
source ${PW_FOLDER}/conf/settings.conf
|
||||||
|
[ -f ${NM_FOLDER}/conf/defaults.local.inc ] && source ${NM_FOLDER}/defaults.inc
|
||||||
|
|
||||||
|
|
||||||
IP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
IP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
||||||
@@ -106,7 +107,9 @@ SENDNOTICE(){
|
|||||||
|
|
||||||
${SN_MSG}
|
${SN_MSG}
|
||||||
|
|
||||||
$(date)" "${SN_TIT}" ${3} ${4} &
|
$(date)" "${SN_TIT}
|
||||||
|
${NM_HOSTNAMES[${IP}]}
|
||||||
|
" ${3} ${4} &
|
||||||
else
|
else
|
||||||
PUSH_TO_MOBILE "${SN_MSG}
|
PUSH_TO_MOBILE "${SN_MSG}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user