File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22All notable changes to this project will be documented in this file.
33
4+ ## [ 1.4.5] - Service release
5+
6+ ### Bugfixes
7+
8+ - Revert #1943 Fix possible error occur for v-rebuild-cron-jobs
9+
410## [ 1.4.4] - Service release
511
612### Features
Original file line number Diff line number Diff line change @@ -610,11 +610,16 @@ sync_cron_jobs() {
610610 else
611611 crontab=" /var/spool/cron/$user "
612612 fi
613- > $crontab
613+
614+ # remove file
615+ rm -f $crontab
616+ touch $crontab
617+
614618 if [ " $CRON_REPORTS " = ' yes' ]; then
615619 echo " MAILTO=$CONTACT " > $crontab
616620 echo ' CONTENT_TYPE="text/plain; charset=utf-8"' >> $crontab
617621 fi
622+
618623 while read line; do
619624 parse_object_kv_list " $line "
620625 if [ " $SUSPENDED " = ' no' ]; then
You can’t perform that action at this time.
0 commit comments