We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b836a0 commit a6eb339Copy full SHA for a6eb339
2 files changed
CHANGELOG.md
@@ -1,6 +1,12 @@
1
# Changelog
2
All notable changes to this project will be documented in this file.
3
4
+## [1.4.5] - Service release
5
+
6
+### Bugfixes
7
8
+- Revert #1943 Fix possible error occur for v-rebuild-cron-jobs
9
10
## [1.4.4] - Service release
11
12
### Features
func/main.sh
@@ -610,11 +610,16 @@ sync_cron_jobs() {
610
else
611
crontab="/var/spool/cron/$user"
612
fi
613
- >$crontab
614
+ # remove file
615
+ rm -f $crontab
616
+ touch $crontab
617
618
if [ "$CRON_REPORTS" = 'yes' ]; then
619
echo "MAILTO=$CONTACT" > $crontab
620
echo 'CONTENT_TYPE="text/plain; charset=utf-8"' >> $crontab
621
622
623
while read line; do
624
parse_object_kv_list "$line"
625
if [ "$SUSPENDED" = 'no' ]; then
0 commit comments