getting slack setup for tsys

This commit is contained in:
Charles N Wyble - admin 2019-04-21 11:14:47 -05:00
parent 61f1f74955
commit 4aeb74484b

View File

@ -7,6 +7,18 @@ if [ $ISUCS -ne 0 ]; then
exit 1 exit 1
fi fi
########################################
#Common to all systems
########################################
#Fix timezone
unlink /etc/localtime
ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
apt -y install htop glances dstat ladvd snmpd ntp tcpdump autofs logwatch molly-guard etckeeper auditd rkhunter rsyslog ngrep screen
MGMT_INT=$(netstat -rn|grep 0.0.0.0|head -n1|awk '{print $NF}') MGMT_INT=$(netstat -rn|grep 0.0.0.0|head -n1|awk '{print $NF}')
PFV_MGMT_IP=$(ifconfig $MGMT_INT|grep inet|grep 10.251 -c) PFV_MGMT_IP=$(ifconfig $MGMT_INT|grep inet|grep 10.251 -c)
OVH_MGMT_IP=$(ifconfig $MGMT_INT|grep inet|grep 10.253 -c) OVH_MGMT_IP=$(ifconfig $MGMT_INT|grep inet|grep 10.253 -c)
@ -19,11 +31,11 @@ if [ $OVH_MGMT_IP -eq 1 ]; then
tsysSysLocation=ovh tsysSysLocation=ovh
fi fi
/usr/local/bin/up2date.sh
apt-get update apt-get update
apt-get -y --purge autoremove apt-get -y --purge autoremove
apt-get -y autoclean apt-get -y autoclean
apt-get -y upgrade apt-get -y upgrade
apt-get -y dist-upgrade apt-get -y dist-upgrade
apt -y install htop glances dstat ladvd snmpd ntp tcpdump autofs logwatch molly-guard etckeeper auditd rkhunter rsyslog
slack tsys-$tsysSysLocation slack tsys-$tsysSysLocation