#!/bin/bash
old_cron () {
mv /etc/cron.d/dndl-sync /root/dndl-sync-old
}

regenerate-monrun-tasks
test -e /etc/cron.d/dndl-sync && old_cron || exit 0