summarylogtreecommitdiffstats
path: root/init_indy_node
blob: 54ba936f98cb14776843f95d80d94deb8a611972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

if [ $# -lt 3 ]; then
    echo ""
    echo "Usage: $0 name port client_port [seed]";
    echo "  name        - node name";
    echo "  port        - node port";
    echo "  client_port - node client port";
    echo "  seed        - node seed";
    echo ""
    exit 1;
fi

echo "NODE_NAME=$1" > /etc/indy/indy.env
echo "NODE_PORT=$2" >> /etc/indy/indy.env
echo "NODE_CLIENT_PORT=$3" >> /etc/indy/indy.env
echo "CLIENT_CONNECTIONS_LIMIT=15360" >> /etc/indy/indy.env

if [ -z $4 ]; then
    init_indy_keys --name $1
else
    init_indy_keys --name $1 --seed $4
fi