ovs-monitor-ipsec: Create cert directory if it doesn't exist.
authorJustin Pettit <jpettit@nicira.com>
Tue, 18 Jan 2011 08:09:15 +0000 (00:09 -0800)
committerJustin Pettit <jpettit@nicira.com>
Thu, 20 Jan 2011 01:53:17 +0000 (17:53 -0800)
debian/ovs-monitor-ipsec

index 12ff9f5f2f75e4b86e1262be9397cbe1e3e1c254..17f399767c60a5475245bb47e8c88b73411e48a3 100755 (executable)
@@ -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: