Blame tests/p_exim/0-install_exim.sh

Christoph Galuschka a19b47
#!/bin/bash
Christoph Galuschka a19b47
# Author: Athmane Madjoudj <athmanem@gmail.com>
Christoph Galuschka a19b47
#	  Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka a19b47
Christoph Galuschka 9328c7
t_Log "Running $0 - remove unused MTAs and install exim"
Christoph Galuschka 9328c7
Christoph Galuschka a19b47
if (t_GetPkgRel basesystem | grep -q el5)
Christoph Galuschka a19b47
then
Athmane Madjoudj fe329b
  t_InstallPackage exim expect telnet
Christoph Galuschka a19b47
  # Remove other MTAs
Christoph Galuschka a19b47
  t_ServiceControl postfix stop
Christoph Galuschka a19b47
  t_ServiceControl sendmail stop
Christoph Galuschka a19b47
  sleep 3
Christoph Galuschka 5b1d14
  t_RemovePackage postfix sendmail
Christoph Galuschka 5b1d14
  # Fix exim.conf to not use IPv6
Christoph Galuschka 5b1d14
  sed -i 's/\:\:1//' /etc/exim/exim.conf
Christoph Galuschka a19b47
  t_ServiceControl exim start
Christoph Galuschka a19b47
else
Christoph Galuschka a19b47
  t_Log "This seems to be a C6 system - skipping"
Christoph Galuschka a19b47
fi
Christoph Galuschka a19b47