diff --git a/files/bashscripts/debian/debian-setup-automatic-updates.sh b/files/bashscripts/debian/debian-setup-automatic-updates.sh new file mode 100644 index 0000000..bc7d74f --- /dev/null +++ b/files/bashscripts/debian/debian-setup-automatic-updates.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +apt install -y unattended-upgrades + diff --git a/files/bashscripts/debian/debian-setup-email.sh b/files/bashscripts/debian/debian-setup-email.sh index 45eccae..1d317d8 100644 --- a/files/bashscripts/debian/debian-setup-email.sh +++ b/files/bashscripts/debian/debian-setup-email.sh @@ -1,6 +1,6 @@ #!/bin/bash -sudo apt install -y libsasl2-modules mailutils postfix postfix-pcre +DEBIAN_FRONTEND=noninteractive apt install -y libsasl2-modules mailutils postfix postfix-pcre echo "smtp.gmail.com notify.akanealw@gmail.com:leawkqqpthbwacrf" > /etc/postfix/sasl_passwd echo "/^From:.*/ REPLACE From: $(hostname) " > /etc/postfix/smtp_header_checks @@ -31,4 +31,4 @@ fi postfix reload -echo "This is a test message sent from postfix on $(hostname)" | mail -s "Test Email from $(hostname)" akanealw@gmail.com +#echo "This is a test message sent from postfix on $(hostname)" | mail -s "Test Email from $(hostname)" akanealw@gmail.com