LWP needs the ca-debian workaround too
authorPaul Wise <pabs@debian.org>
Wed, 7 Jan 2015 15:18:28 +0000 (23:18 +0800)
committerPaul Wise <pabs@debian.org>
Wed, 7 Jan 2015 15:18:48 +0000 (23:18 +0800)
dsa-nagios-checks/checks/dsa-check-mirrorsync

index 88984c2..b869116 100755 (executable)
@@ -52,6 +52,8 @@ sub usage($$) {
        exit ($exit);
 };
 
+# Work around LWP not being able to verify service certs directly
+$ENV{'HTTPS_CA_DIR'} = '/etc/ssl/ca-debian';
 
 $ENV{'PATH'} = '/bin:/sbin:/usr/bin:/usr/sbin';
 delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};