Update defaults.inc

This commit is contained in:
2025-03-10 22:25:39 -05:00
parent 993429fdba
commit f6ec7524f4

View File

@@ -1,12 +1,13 @@
#!/usr/bin/env bash
VERS='2.8.24-03092025'
VERS='2.8.25-03102025'
noheader=' update service dailytemp confsync -r -report test '
HC_CW=60
PRI_WIDTH=75
ESXI_DEFAULT_EXHAUST_MIN=85
IP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
NM_FOLDER='/opt/idssys/nodemgmt'
NM_TMPFOLDER=${NM_FOLDER}/.tmp
@@ -14,8 +15,8 @@ NM_TMPFOLDER=${NM_FOLDER}/.tmp
PW_FOLDER='/opt/idssys/powerwall'
PW_INCFOLDER=${PW_FOLDER}/inc
PW_LOGFOLDER=${PW_FOLDER}/logs
PW_LOGARCHIVE=${PW_FOLDER}/logs/archive
[[ "${IP}" = "10.2.1."* ]] && PW_LOGFOLDER=${PW_FOLDER}/offsite/logs || PW_LOGFOLDER=${PW_FOLDER}/mainsite/logs
PW_LOGARCHIVE=${PW_LOGFOLDER}/archive
PW_TMPFOLDER=${PW_FOLDER}/.tmp
@@ -35,7 +36,6 @@ M_SRVCOPT=(start stop restart reload enable disable)
source ${PW_FOLDER}/conf/settings.conf
IP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
# if [[ "${IP}" = "10.2.1."* ]]; then
mqtt_conn="/usr/bin/mosquitto_sub -h ${PW_IP} -u ${PW_MQTT_USER} -P ${PW_MQTT_PASS}"
mysql_conn="/usr/bin/mariadb -h 127.0.0.1 -P 3308 --user=${PW_MYSQL_USER} --password=${PW_MYSQL_PASS}"