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"
Athmane Madjoudj 4f8977
if (t_GetPkgRel basesystem | grep -q el6)
Athmane Madjoudj 4f8977
then
Athmane Madjoudj 4f8977
    t_InstallPackage  cronie
Athmane Madjoudj 4f8977
    service crond start
Athmane Madjoudj 4f8977
else
Athmane Madjoudj 4f8977
    t_InstallPackage  vixie-cron
Athmane Madjoudj 4f8977
    service crond start
Athmane Madjoudj 4f8977
fi
Athmane Madjoudj 4f8977