diff --git a/install-dsmon.sh b/install-dsmon.sh index 0d2c36b..5af7a12 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -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