bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_cron/0-install_cron.sh

Athmane Madjoudj 4f8977
#!/bin/bash
Athmane Madjoudj 4f8977
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 4f8977
Athmane Madjoudj 4f8977
t_Log "$0 - Installing crond"
Rene Diepstraten 365fb8
if (t_GetPkgRel basesystem | grep -q -E 'el6|el7')
Athmane Madjoudj 4f8977
then
Karanbir Singh 3d6990
  pn="cronie"
Athmane Madjoudj 4f8977
else
Karanbir Singh 3d6990
  pn="vixie-cron"
Athmane Madjoudj 4f8977
fi
Athmane Madjoudj 4f8977
Karanbir Singh cf1376
t_InstallPackage  $pn
Karanbir Singh cf1376
t_ServiceControl crond cycle