Do not try to update the CRL if its URL is not set

tags/0.0.1
Daniel Berteaud 12 years ago
parent 3220617370
commit 7b7d1f9e50
  1. 4
      root/etc/e-smith/events/actions/openvpn-routed-update-crl

@ -3,6 +3,10 @@
URL=$(/sbin/e-smith/db configuration getprop openvpn-routed CrlUrl) URL=$(/sbin/e-smith/db configuration getprop openvpn-routed CrlUrl)
DOMAIN=$(/sbin/e-smith/db configuration get DomainName) 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/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 /usr/bin/openssl crl -inform PEM -in /tmp/cacrl.pem -text > /dev/null 2>&1

Loading…
Cancel
Save