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"
|
|
Pablo Greco |
37caac |
if (t_GetPkgRel basesystem | grep -q -E 'el6|el7|el8')
|
|
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
|