coo@turnsys.com confirmed working fleet wide. direct to root still not working.

This commit is contained in:
2025-06-24 15:34:43 -05:00
parent 61009a4158
commit 82c93f4190

View File

@ -185,13 +185,13 @@ telnet
export KALI_CHECK export KALI_CHECK
KALI_CHECK="$(distro |grep -c kali)" KALI_CHECK="$(distro |grep -c kali)"
if [ "$KALI_CHECK" -eq 0 ]; then if [ "$KALI_CHECK" = 0 ]; then
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" -eq 1 ]; then if [ "$KALI_CHECK" = 1 ]; then
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
@ -206,7 +206,7 @@ VIRT_GUEST="$(echo "$VIRT_TYPE"|egrep 'hyperv|kvm' )"
export KVM_GUEST export KVM_GUEST
KVM_GUEST="$(echo "$VIRT_TYPE"|grep 'kvm')" KVM_GUEST="$(echo "$VIRT_TYPE"|grep 'kvm')"
if [[ $KVM_GUEST -eq 1 ]]; then if [[ $KVM_GUEST = 1 ]]; then
apt -y install qemu-guest-agent apt -y install qemu-guest-agent
fi fi
@ -246,12 +246,8 @@ postconf -e "smtp_generic_maps = hash:/etc/postfix/generic"
systemctl restart postfix systemctl restart postfix
#This should always work #This is under test/dev and may fail
echo "hi from root to coo@turnsys.com" | mail -s "hi to root(coo@turnsys.com) from $(hostname)" coo@turnsys.com echo "hi from root to root" | mail -s "hi directly to root from $(hostname)" root
#This is in dev and may fail
echo "hi from root to just root" | mail -s "hi directly to root from $(hostname)" root
chsh -s $(which zsh) root chsh -s $(which zsh) root