|
|
@ -29,6 +29,11 @@ else |
|
|
|
grep "root: " /etc/aliases |
|
|
|
fi |
|
|
|
|
|
|
|
hostname=$(hostname); |
|
|
|
|
|
|
|
#disable on hostname mail and lists |
|
|
|
if [ "$hostname" != "mail" ] && [ "$hostname" != "lists" ]; then |
|
|
|
|
|
|
|
apt-get install exim4 -y -q |
|
|
|
|
|
|
|
cat << 'EOF' > /etc/exim4/update-exim4.conf.conf |
|
|
@ -67,12 +72,15 @@ EOF |
|
|
|
|
|
|
|
dpkg-reconfigure exim4-config |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
#apt |
|
|
|
apt-get install cron-apt -y |
|
|
|
#cp /usr/share/doc/cron-apt/examples/*-* /etc/cron-apt/action.d/ |
|
|
|
|
|
|
|
sed -i 's/#[\t ]*dist-upgrade -d -y -o APT::Get::Show-Upgraded=true/dist-upgrade -y -o APT::Get::Show-Upgraded=true/g' /etc/locale.gen |
|
|
|
#sed -i 's/[\t ]*dist-upgrade -d -y -o APT::Get::Show-Upgraded=true/dist-upgrade -y -o APT::Get::Show-Upgraded=true/g' /etc/cron-apt/action.d/3-download |
|
|
|
sed -i 's/[\t ]MAILTO="root"/MAILTO="roots@lists.lilik.it"/g' /etc/cron-apt/config |
|
|
|
|
|
|
|
cat << 'EOF' >/etc/cron-apt/config |
|
|
|
# Configuration for cron-apt. For further information about the possible |
|
|
|