From 7026926f4b3176167917bd4343cbef8a30f03eac Mon Sep 17 00:00:00 2001 From: Andrea Cimbalo Date: Mon, 8 Jul 2013 01:12:45 +0200 Subject: [PATCH] disable exim4 configuration on some host --- fix-vm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fix-vm b/fix-vm index 256afb2..5ddf6de 100644 --- a/fix-vm +++ b/fix-vm @@ -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