firmware: refine edge case

This commit is contained in:
Franco Fichtner 2024-10-10 08:38:21 +02:00
parent ffec0034b9
commit 73bc8b6d12

View File

@ -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