diff --git a/src/opnsense/scripts/firmware/launcher.sh b/src/opnsense/scripts/firmware/launcher.sh index e941da15b..e8b354087 100755 --- a/src/opnsense/scripts/firmware/launcher.sh +++ b/src/opnsense/scripts/firmware/launcher.sh @@ -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