Update install-dsmon.sh

This commit is contained in:
2025-06-01 20:19:48 -05:00
parent 4f3497913a
commit d1a591926a

View File

@@ -28,9 +28,15 @@ fi
RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1)
if [[ "${RNIP}" == "10.6.1"* ]]; then
mysqlcmd="mysql"
mysqlip=10.6.1.5
do_with_root $APTFUNC install wget curl git mailutils bc mysql-client-8.0
if [ "${RNIP}" == "10.6.1.5" ]; then
mysqlcmd="mysql"
do_with_root $APTFUNC install wget curl git mailutils bc mysql-client-8.0
else
mysqlcmd="mariadb --skip-ssl"
do_with_root $APTFUNC install wget curl git mailutils bc mariadb-client
fi
else
mysqlcmd="mariadb --skip-ssl"
do_with_root $APTFUNC install wget curl git mailutils bc mariadb-client
@@ -44,6 +50,7 @@ else
fi
do_with_root set -eu
do_with_root git clone https://git.schroedercity.com/voltron/dsmon.git /opt/idssys/dsmon
do_with_root ln -s /opt/idssys/dsmon/run.sh /usr/local/bin/dsmon