ndncert: Initial release

Change-Id: I280c7a059b330e4065f66615165741f411d72168
diff --git a/ndncert/debian/ndncert-server.postinst b/ndncert/debian/ndncert-server.postinst
new file mode 100644
index 0000000..4ee63ca
--- /dev/null
+++ b/ndncert/debian/ndncert-server.postinst
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+if [ "$1" != "configure" ]; then
+        exit 0
+fi
+
+APP=ndncert
+
+if [ ! -f /var/lib/ndn/$APP/.ndn/pib.db ]; then
+    sudo mkdir -p /var/lib/ndn/$APP/.ndn
+    sudo chown -R ndn:ndn /var/lib/ndn/$APP
+fi
+
+exit 0