From ffd4f74c4a69c51ed37235072a4a7a1bcf279420 Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Wed, 25 Jun 2025 10:05:50 -0500 Subject: [PATCH] very close to a 1.0 release --- SetupNewSystem.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/SetupNewSystem.sh b/SetupNewSystem.sh index 2a6f78f..ba50b77 100644 --- a/SetupNewSystem.sh +++ b/SetupNewSystem.sh @@ -234,24 +234,18 @@ iptables-persistent \ postfix \ telnet -echo "Main packages installed." - -echo "Checking to see if we are on a kali system..." - export KALI_CHECK KALI_CHECK="$(distro |grep -c kali ||true)" if [ "$KALI_CHECK" = 0 ]; then - echo "We are not on a kali system, installing regular NTP packages..." -export DEBIAN_FRONTEND="noninteractive" apt-get -qq --yes -o Dpkg::Options::="--force-confold" install \ +export DEBIAN_FRONTEND="noninteractive" ; apt-get -qq --yes -o Dpkg::Options::="--force-confold" install \ ntpdate \ ntp fi if [ "$KALI_CHECK" = 1 ]; then - echo "We are on a kali system, installing Kali NTP packages..." -export DEBIAN_FRONTEND="noninteractive" apt-get -qq --yes -o Dpkg::Options::="--force-confold" install \ +export DEBIAN_FRONTEND="noninteractive" ; apt-get -qq --yes -o Dpkg::Options::="--force-confold" install \ ntpsec-ntpdate \ ntpsec fi @@ -341,6 +335,7 @@ systemctl daemon-reload && systemctl restart snmpd && /etc/init.d/snmpd restart systemctl stop rsyslog systemctl start rsyslog + logger "hi hi from $(hostname)" if [ "$KALI_CHECK" -eq 0 ]; then @@ -353,7 +348,6 @@ if [ "$KALI_CHECK" -eq 1 ]; then systemctl restart ntpsec.service fi -systemctl enable systemctl stop postfix systemctl start postfix