Update defaults.inc
This commit is contained in:
@@ -10,7 +10,11 @@ noheader=" gettsip-node get-crontabs get-crontab update report updatenodes runcm
|
|||||||
[ "$(ip route | awk '/default/ { print $5 }')" == "link" ] && RNIP=$(ip addr show $(ip route | awk '/1 dev eth0/ { print $5; exit }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) ||
|
[ "$(ip route | awk '/default/ { print $5 }')" == "link" ] && RNIP=$(ip addr show $(ip route | awk '/1 dev eth0/ { print $5; exit }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) ||
|
||||||
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
|
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.10.10.50" ]; then
|
||||||
|
mysqlcmd="mysql"
|
||||||
|
else
|
||||||
|
mysqlcmd="mariadb --skip-ssl"
|
||||||
|
fi
|
||||||
if [[ "${RNIP}" == "10.6.1."* ]]; then
|
if [[ "${RNIP}" == "10.6.1."* ]]; then
|
||||||
if [ -d /opt/idssys/nodemgmt ]; then
|
if [ -d /opt/idssys/nodemgmt ]; then
|
||||||
nmip=${NM_NODEMANAGER}
|
nmip=${NM_NODEMANAGER}
|
||||||
|
|||||||
Reference in New Issue
Block a user