very close to a 1.0 release
This commit is contained in:
@@ -234,24 +234,18 @@ iptables-persistent \
|
|||||||
postfix \
|
postfix \
|
||||||
telnet
|
telnet
|
||||||
|
|
||||||
echo "Main packages installed."
|
|
||||||
|
|
||||||
echo "Checking to see if we are on a kali system..."
|
|
||||||
|
|
||||||
export KALI_CHECK
|
export KALI_CHECK
|
||||||
KALI_CHECK="$(distro |grep -c kali ||true)"
|
KALI_CHECK="$(distro |grep -c kali ||true)"
|
||||||
|
|
||||||
if [ "$KALI_CHECK" = 0 ]; then
|
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 \
|
ntpdate \
|
||||||
ntp
|
ntp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$KALI_CHECK" = 1 ]; then
|
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-ntpdate \
|
||||||
ntpsec
|
ntpsec
|
||||||
fi
|
fi
|
||||||
@@ -341,6 +335,7 @@ systemctl daemon-reload && systemctl restart snmpd && /etc/init.d/snmpd restart
|
|||||||
|
|
||||||
systemctl stop rsyslog
|
systemctl stop rsyslog
|
||||||
systemctl start rsyslog
|
systemctl start rsyslog
|
||||||
|
|
||||||
logger "hi hi from $(hostname)"
|
logger "hi hi from $(hostname)"
|
||||||
|
|
||||||
if [ "$KALI_CHECK" -eq 0 ]; then
|
if [ "$KALI_CHECK" -eq 0 ]; then
|
||||||
@@ -353,7 +348,6 @@ if [ "$KALI_CHECK" -eq 1 ]; then
|
|||||||
systemctl restart ntpsec.service
|
systemctl restart ntpsec.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl enable
|
|
||||||
systemctl stop postfix
|
systemctl stop postfix
|
||||||
systemctl start postfix
|
systemctl start postfix
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user