From 7b7d1f9e50435deb3608c370dedf75b056fed561 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 24 May 2013 16:59:45 +0200 Subject: [PATCH] Do not try to update the CRL if its URL is not set --- root/etc/e-smith/events/actions/openvpn-routed-update-crl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root/etc/e-smith/events/actions/openvpn-routed-update-crl b/root/etc/e-smith/events/actions/openvpn-routed-update-crl index 6327aa6..d272482 100644 --- a/root/etc/e-smith/events/actions/openvpn-routed-update-crl +++ b/root/etc/e-smith/events/actions/openvpn-routed-update-crl @@ -3,6 +3,10 @@ URL=$(/sbin/e-smith/db configuration getprop openvpn-routed CrlUrl) DOMAIN=$(/sbin/e-smith/db configuration get DomainName) +if [ -z $URL ]; then + exit 0 +fi + /usr/bin/wget $URL -O /tmp/cacrl.pem > /dev/null 2>&1 /usr/bin/openssl crl -inform PEM -in /tmp/cacrl.pem -text > /dev/null 2>&1