This commit is contained in:
2019-01-30 00:51:24 -06:00
parent b59ca2a986
commit 75971d8fd7
6 changed files with 15 additions and 12 deletions

View File

@@ -22,8 +22,9 @@ if [ ! -d "/opt/idssys/defaults" ]; then
do_with_root git clone git@git.schroedercity.com:voltron/iDS-Defaults.git /opt/idssys/defaults
fi
mkdir /opt/idssys/settings
echo -e "useAutoremove=1
opennms=false" > /opt/idssys/LinUPx/settings.conf
opennms=false" > /opt/idssys/settings/linupx.conf
echo ""
echo -e "${idsCL[Yellow]}LinUPx has been Installed${idsCL[Default]}"

View File

@@ -19,14 +19,15 @@ echo -e "${idsCL[LightGreen]}MySQL-BU Installation Script${idsCL[Default]}"
do_with_root $APTFUNC -y install wget curl git mariadb-backup
do_with_root set -eu
do_with_root git clone https://git.schroedercity.com/voltron/MySQL-BU.git /opt/idssys/mysqlbu
do_with_root mkdir /opt/idssys/settings
do_with_root git clon https://git.schroedercity.com/voltron/MySQL-BU.git /opt/idssys/mysqlbu
do_with_root ln -s /opt/idssys/mysqlbu/run.sh /usr/local/bin/mysqlbu
echo -e "BACKUP_PATH='/var/lib/mysql-backups/'
MYSQLUSER='root'
MYSQLPASS='Dc\$@54115'
MYSQLUSER=''
MYSQLPASS=''
MYSQLCFG='/etc/mysql/my.cnf'
BACKUPSTOKEEP=3
" > /opt/idssys/mysqlbu/settings.conf
" > /opt/idssys/settings/mysqlbu.conf
if [ ! -d "/opt/idssys/defaults" ]; then
do_with_root set -eu

View File

@@ -22,10 +22,11 @@ if [ ! -d "/opt/idssys/defaults" ]; then
do_with_root git clone git@git.schroedercity.com:voltron/iDS-Defaults.git /opt/idssys/defaults
fi
mkdir /opt/idssys/settings
echo -e "NODE_HOSTNAME=\"$(hostname)\"
#LOCAL_SERVICES=mysql,nginx,gitea,haproxy,keepalived,maxscale
#STATUS_CHECK_EMAIL=someone@somewhere.com
" > /opt/idssys/nodemgmt/settings.conf
" > /opt/idssys/settings/nodemgmt.conf
echo ""

View File

@@ -18,8 +18,8 @@ do_with_root rm -Rf /opt/idssys/LinUPx
if [ -d "/opt/idssys" ]; then
IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`"
if [ "$IDSSYSF" = 1 ]; then
do_with_root rm -Rf /opt/idssys
if [ "$IDSSYSF" = 2 ]; then
do_with_root rm -Rf /opt/idssys/defaults
fi
fi

View File

@@ -19,8 +19,8 @@ rm -Rf /opt/idssys/mysqlbu
rm -Rf /opt/mysqlbu
IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`"
if [ "$IDSSYSF" = 1 ]; then
rm -Rf /opt/idssys
if [ "$IDSSYSF" = 2 ]; then
rm -Rf /opt/idssys/defaults
fi
echo ""

View File

@@ -17,8 +17,8 @@ rm -f /usr/local/bin/nodemgmt
rm -Rf /opt/idssys/nodemgmt
IDSSYSF="`ls -l /opt/idssys/ | grep -c ^d`"
if [ "$IDSSYSF" = 1 ]; then
rm -Rf /opt/idssys
if [ "$IDSSYSF" = 2 ]; then
rm -Rf /opt/idssys/defaults
fi
echo ""