From: Justin Pettit Date: Tue, 18 Jan 2011 08:09:15 +0000 (-0800) Subject: ovs-monitor-ipsec: Create cert directory if it doesn't exist. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef035eeff6bbfae11fe3d0c9afdf390ce7050386;p=openvswitch ovs-monitor-ipsec: Create cert directory if it doesn't exist. --- 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: