You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/profiles/templates/3.6/6_ac_update_sync/revision/2019/20190927-check_vixie-cron

17 lines
532 B

# Calculate run=/bin/bash pkg(sys-process/cronie)!=&&pkg(sys-process/vixie-cron)==
origcrontab=/etc/crontab
cfgcrontab1=/etc/._cfg0000_crontab
if [[ -f $cfgcrontab1 ]]
then
echo "Need to update /etc/crontab for correct work of cronie" 1>&2
echo "and reconfigure cronie by command:" 1>&2
echo " cl-core-setup --pkg-name cronie" 1>&2
elif grep -q var/spool/cron/lastrun/cron.hourly /etc/crontab && grep -q run-crons /etc/crontab
then
echo "Using run-crons for cronie may cause to double excecuting anacron tasks" 1>&2
fi
true