Remove the OCSP issuer file if it's obsolete.
This commit is contained in:
parent
f8606f3f9f
commit
9f4379926c
|
@ -40,8 +40,14 @@ fi
|
||||||
|
|
||||||
# Run the OCSP stapling script
|
# Run the OCSP stapling script
|
||||||
if [ -x /usr/local/bin/hapos-upd ] ; then
|
if [ -x /usr/local/bin/hapos-upd ] ; then
|
||||||
|
upd_retval=
|
||||||
echo "Run the OCSP stapling updater script" >> $LE_LOG_DIR/haproxy.log
|
echo "Run the OCSP stapling updater script" >> $LE_LOG_DIR/haproxy.log
|
||||||
/usr/local/bin/hapos-upd --cert {{ haproxy_cert_dir }}/haproxy.pem -v ${LE_CERTS_DIR}/fullchain -s {{ haproxy_admin_socket }} -v - >> $LE_LOG_DIR/haproxy.log 2>&1
|
/usr/local/bin/hapos-upd --cert {{ haproxy_cert_dir }}/haproxy.pem -v ${LE_CERTS_DIR}/fullchain -s {{ haproxy_admin_socket }} -v - >> $LE_LOG_DIR/haproxy.log 2>&1
|
||||||
|
upd_retval=$?
|
||||||
|
if [ $upd_retval -ne 0 ] ; then
|
||||||
|
rm -f ${HAPROXY_CERTFILE}.issuer
|
||||||
|
/usr/local/bin/hapos-upd --cert {{ haproxy_cert_dir }}/haproxy.pem -v ${LE_CERTS_DIR}/fullchain -s {{ haproxy_admin_socket }} -v - >> $LE_LOG_DIR/haproxy.log 2>&1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "No OCPS stapling updater script" >> $LE_LOG_DIR/haproxy.log
|
echo "No OCPS stapling updater script" >> $LE_LOG_DIR/haproxy.log
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue