xoxys.yum/templates/etc/cron.d/x-yum.j2
Robert Kaussow f9d7946102
Some checks failed
continuous-integration/drone/push Build is failing
fix ansible_managed handling
2019-08-27 08:33:52 +02:00

12 lines
363 B
Django/Jinja

#!/bin/bash
{{ ansible_managed | comment }}
# 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