From fc90e6f62e753c68ccdee509139da40181c42638 Mon Sep 17 00:00:00 2001 From: Charles Wyble Date: Sun, 21 Apr 2019 13:11:18 -0500 Subject: [PATCH] distro fix --- slack-dist/bin/slackInstall.sh | 2 +- slack/prod/tsys-base/files/etc/rsyslog.d/10-remote.conf | 3 +++ slack/prod/tsys-base/scripts/postinstall | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 slack/prod/tsys-base/files/etc/rsyslog.d/10-remote.conf diff --git a/slack-dist/bin/slackInstall.sh b/slack-dist/bin/slackInstall.sh index 4d4f585..48d02f7 100755 --- a/slack-dist/bin/slackInstall.sh +++ b/slack-dist/bin/slackInstall.sh @@ -69,7 +69,7 @@ export SERVER_TYPE="prod" ####################################################################################################################################################### #Step 3: Grab slack runtime bits and deploy slack ####################################################################################################################################################### -curl --insecure -q $DIST_SERVER/$DIST_ROOT_PATH/distro > /usr/bin/distro +curl --insecure -q $DIST_SERVER/$DIST_ROOT_PATH/bin/distro > /usr/bin/distro chmod +x /usr/bin/distro apt-get -y install make perl rsync diff --git a/slack/prod/tsys-base/files/etc/rsyslog.d/10-remote.conf b/slack/prod/tsys-base/files/etc/rsyslog.d/10-remote.conf new file mode 100644 index 0000000..e96757a --- /dev/null +++ b/slack/prod/tsys-base/files/etc/rsyslog.d/10-remote.conf @@ -0,0 +1,3 @@ +# Provides UDP forwarding. The IP is the server's IP address +*.* @10.253.3.99:514 + diff --git a/slack/prod/tsys-base/scripts/postinstall b/slack/prod/tsys-base/scripts/postinstall index c5a089c..8573cee 100755 --- a/slack/prod/tsys-base/scripts/postinstall +++ b/slack/prod/tsys-base/scripts/postinstall @@ -49,7 +49,7 @@ export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --purge autoremove --yes #Step 2: Cleanup default cruft echo "removing evil from the world, one nano install at a time" -export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes --purge remove nano +export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes --purge remove nano resolvconf if [ $UBUNTU_SERVER -eq 0 ]; then sed -i "s/dns=dnsmasq/#dns=dnsmasq/" /etc/NetworkManager/NetworkManager.conf @@ -59,7 +59,7 @@ unlink /etc/resolv.conf ln -s /etc/tplab-resolv.conf /etc/resolv.conf #Step 3: The usual suspects -export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes -o Dpkg::Options::="--force-confold" install snmpd sssd sssd-ad ncdu iftop nethogs screen acct tshark tcpdump glances dstat htop sysdig sysstat rsync clamav logwatch zsh sl postfix molly-guard git mailutils ladvd etckeeper auditd rkhunter rsyslog ngrep ntp +export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes -o Dpkg::Options::="--force-confold" install snmpd ncdu iftop nethogs screen acct tshark tcpdump glances dstat htop sysdig sysstat rsync clamav logwatch zsh sl postfix molly-guard git mailutils ladvd etckeeper auditd rkhunter rsyslog ngrep ntp nut-client lm-sensors zlib1g-dev uuid-dev libmnl-dev gcc make autoconf autoconf-archive autogen automake pkg-config curl #Turn on process accounting echo "Turning on process accounting..."