bit-team / backintime

Back In Time - An easy-to-use backup tool for GNU/Linux using rsync in the back
https://backintime.readthedocs.io
GNU General Public License v2.0
2.09k stars 204 forks source link

[1.5.2] fix: Crontab end with newline #1827

Closed buhtz closed 3 months ago

buhtz commented 3 months ago

Make sure crontab is always written with a newline. Some cron implementations (e.g. cronie) would give an error otherwise. Was fixed in #781 and reintroduced with 6d77e319cd9c15f54dd60acc7879b938535d317c (refactoring). Additionally fixing behavior of accidentally adding empty lines to crontab.

I verified this does not influence regular vixie cron used by Debian systems.