Update install-dsmon.sh
This commit is contained in:
@@ -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)
|
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
|
if [[ "${RNIP}" == "10.6.1"* ]]; then
|
||||||
mysqlcmd="mysql"
|
|
||||||
mysqlip=10.6.1.5
|
mysqlip=10.6.1.5
|
||||||
do_with_root $APTFUNC install wget curl git mailutils bc mysql-client-8.0
|
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
|
else
|
||||||
mysqlcmd="mariadb --skip-ssl"
|
mysqlcmd="mariadb --skip-ssl"
|
||||||
do_with_root $APTFUNC install wget curl git mailutils bc mariadb-client
|
do_with_root $APTFUNC install wget curl git mailutils bc mariadb-client
|
||||||
@@ -44,6 +50,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
do_with_root set -eu
|
do_with_root set -eu
|
||||||
do_with_root git clone https://git.schroedercity.com/voltron/dsmon.git /opt/idssys/dsmon
|
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
|
do_with_root ln -s /opt/idssys/dsmon/run.sh /usr/local/bin/dsmon
|
||||||
|
|||||||
Reference in New Issue
Block a user