diff options
author | Michael Osipov <michaelo@FreeBSD.org> | 2024-03-14 16:39:47 +0000 |
---|---|---|
committer | Michael Osipov <michaelo@FreeBSD.org> | 2024-04-01 19:19:50 +0000 |
commit | fc5208028a78b014bdb1c77264c5b8c1823f9281 (patch) | |
tree | 7e27aa798d59e7469cb9ad12bbfe9e7cfc8e1be1 | |
parent | e0a58ef24a3baf5ed4cc09a798b9fe2d85408052 (diff) |
freebsd-update: mark "cron" as fetched as "fetch" itself
The change in 33bd05c3187d7b49c80cf1b0132b405c105d0833 was incomplete
because it did not mark "cron" as ISFETCHED=1 although it performs the
same operations as "install", but less output and does not perform a
hard exit. Mark result as such and make "install" know that updates have
been fetched.
PR: 277699
Approved by: jrm (mentor), emaste, cperciva
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D44356
-rw-r--r-- | usr.sbin/freebsd-update/freebsd-update.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh index 551d40418240..9af6e8d711ed 100644 --- a/usr.sbin/freebsd-update/freebsd-update.sh +++ b/usr.sbin/freebsd-update/freebsd-update.sh @@ -3457,6 +3457,7 @@ cmd_cron () { [ ${VERBOSELEVEL} = "debug" ]; then mail -s "`hostname` security updates" ${MAILTO} < ${TMPFILE} fi + ISFETCHED=1 rm ${TMPFILE} } |