From ef035eeff6bbfae11fe3d0c9afdf390ce7050386 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 18 Jan 2011 00:09:15 -0800 Subject: [PATCH] ovs-monitor-ipsec: Create cert directory if it doesn't exist. --- debian/ovs-monitor-ipsec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ipsec index 12ff9f5f..17f39976 100755 --- a/debian/ovs-monitor-ipsec +++ b/debian/ovs-monitor-ipsec @@ -116,6 +116,9 @@ path certificate "%s"; self.psk_hosts = {} self.cert_hosts = {} + if not os.path.isdir(self.cert_dir): + os.mkdir(self.cert_dir) + # Clean out stale peer certs from previous runs for ovs_cert in glob.glob("%s/ovs-*.pem" % self.cert_dir): try: -- 2.30.2