bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

Blame tests/p_sendmail/0-install_sendmail.sh

Athmane Madjoudj d2d805
#!/bin/bash
Athmane Madjoudj d2d805
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj d2d805
Athmane Madjoudj d2d805
t_InstallPackage sendmail
Athmane Madjoudj d2d805
Athmane Madjoudj d2d805
# Remove other MTAs
Athmane Madjoudj d2d805
t_ServiceControl postfix stop
Athmane Madjoudj 7c8dc1
sleep 3
Athmane Madjoudj f23f76
t_RemovePackage postfix
Christoph Galuschka 2844c1
if (t_GetPkgRel basesystem | grep -q el5)
Christoph Galuschka 2844c1
then
Christoph Galuschka 2844c1
  #also stoping/removing exim
Christoph Galuschka 2844c1
  t_ServiceControl exim stop
Christoph Galuschka 2844c1
  sleep 3
Christoph Galuschka 2844c1
  t_RemovePackage exim
Christoph Galuschka 2844c1
fi
Athmane Madjoudj d2d805
Athmane Madjoudj d2d805
t_ServiceControl sendmail start