Remove bad cron from list if crontab errored during addition

Version 1.51


If you create a cron with bad values, crontab would return an error, and not add them. The issue was that DA had already saved the crontab.conf file so the bad cron was left in the list, causing confusion if other crons were attempted to be added. Change is to remove a bad cron from the list anytime the crontab call returns a non-zero result.

Interested to try DirectAdmin? Get a 30-day Free Trial!