Update defaults.inc

This commit is contained in:
2025-06-01 20:24:04 -05:00
parent 60630a95d7
commit cd0c8b0b0c

View File

@@ -11,9 +11,17 @@ noheader=" gettsip-node get-crontabs get-crontab update report updatenodes runcm
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
mysqlcmd="mariadb --skip-ssl"
if [[ "${RNIP}" == "10.6.1"* ]]; then
if [ "${RNIP}" == "10.6.1.5" ]; then
nmip=${NM_NODEMANAGER}
mysqlcmd="mysql"
mysql_conn="-h ${NM_SINGLESRVR_IP[MYSQL]}"
elif [[ "${RNIP}" == "10.6.1."* ]]; then
if [ -d /opt/idssys/nodemgmt ]; then
nmip=${NM_NODEMANAGER}
mysql_conn="-h ${NM_SINGLESRVR_IP[MYSQL]}"
else
mysql_conn="-h 10.6.1.5"
fi
elif [ "${TAILSCALE}" == "true" ]; then
nmip=${NM_NODEMANAGER_TS}
mysql_conn="-h 100.100.5.6 -P 3307"