Alexander Afanasyev | 8019a93 | 2014-08-10 18:19:28 -0700 | [diff] [blame] | 1 | #!/bin/sh -e |
2 | |||||
3 | if [ "$1" != "configure" ]; then | ||||
4 | exit 0 | ||||
5 | fi | ||||
6 | |||||
7 | if [ ! -d /var/log/ndn/nlsr ]; then | ||||
8 | mkdir -p /var/log/ndn/nlsr | ||||
9 | chown -R nlsr:nlsr /var/log/ndn/nlsr | ||||
10 | fi | ||||
11 | |||||
12 | if [ ! -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 | ||||
16 | fi | ||||
17 | |||||
18 | #DEBHELPER# | ||||
19 | |||||
20 | exit 0 |