Browse Source

disable exim4 configuration on some host

master
Andrea Cimbalo 12 years ago
parent
commit
7026926f4b
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      fix-vm

+ 9
- 1
fix-vm View File

@ -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


Loading…
Cancel
Save