mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
firmware: refine edge case
This commit is contained in:
parent
ffec0034b9
commit
73bc8b6d12
1 changed files with 6 additions and 0 deletions
|
|
@ -115,6 +115,12 @@ if [ -n "$(opnsense-update -x)" ]; then
|
|||
# make sure to not clobber the file when this fails
|
||||
if /usr/local/opnsense/scripts/system/update-crl-fetch.py ${HOSTS} > ${CRL_TMP}; then
|
||||
mv ${CRL_TMP} ${CRL_FILE}
|
||||
else
|
||||
# in case of problems clear the file and leave an
|
||||
# empty one for the next run also in order to let
|
||||
# libfetch complain about the missing CRLs
|
||||
rm ${CRL_TMP}
|
||||
: > ${CRL_FILE}
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue