xoxys.yum/templates/etc/cron.d/x-yum.j2

13 lines
356 B
Plaintext
Raw Normal View History

2018-11-15 20:38:39 +00:00
#!/bin/bash
# {{ ansible_managed }}
# Only run if this flag is set. The flag is created by the yum-cron init
# script when the service is started -- this allows one to use chkconfig and
# the standard "service stop|start" commands to enable or disable yum-cron.
if [[ ! -f /var/lock/subsys/yum-cron ]]; then
exit 0
fi
# Action!
exec /usr/sbin/yum-cron