blob: b0828693136ea27f1606a2ce84ac585b2dad93e7 [file] [log] [blame]
Alexander Afanasyev4c568f22014-05-23 17:18:06 -07001#!/bin/sh -e
2
3if [ "$1" != "configure" ]; then
4 exit 0
5fi
6
7APP=ndn-tlv-ping
8
9if [ ! -f /var/lib/ndn/$APP/.ndn/ndnsec-public-info.db ]; then
10 # Create HOME and generate self-signed NDN certificate
11 sudo mkdir -p /var/lib/ndn/$APP/.ndn
12 sudo chown -R ndn:ndn /var/lib/ndn/$APP
13 sudo -u ndn -g ndn HOME=/var/lib/ndn/$APP ndnsec-keygen /localhost/daemons/$APP | \
14 sudo -u ndn -g ndn HOME=/var/lib/ndn/$APP ndnsec-install-cert -
15fi
16
17#DEBHELPER#
18
19exit 0