blob: ab9485167de6977a76c1b423d41c34bc851cff2a [file] [log] [blame]
Alexander Afanasyev8019a932014-08-10 18:19:28 -07001#!/bin/sh -e
2
3if [ "$1" != "configure" ]; then
4 exit 0
5fi
6
7if [ ! -d /var/log/ndn/nlsr ]; then
8 mkdir -p /var/log/ndn/nlsr
9 chown -R nlsr:nlsr /var/log/ndn/nlsr
10fi
11
12if [ ! -d /var/lib/ndn/nlsr ]; then
13 # Create HOME and generate self-signed NDN certificate for nrd
14 sudo mkdir -p /var/lib/ndn/nlsr/.ndn
15 sudo chown -R nlsr:nlsr /var/lib/ndn/nlsr
16fi
17
18#DEBHELPER#
19
20exit 0