summarylogtreecommitdiffstats
path: root/concordium-mainnet-node.install
blob: a8e66ae464651a08fd446f1c19fd1ba078902ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
post_install() {
    default_file=/etc/default/concordium-mainnet-node-collector

    if grep -qs __NODE_NAME__ $default_file; then
        node_name=concordium-$(openssl rand -hex 4)

        sed -i "s/__NODE_NAME__/$node_name/" $default_file
        echo -e "\033[0;32m
    Concordium node name set to '$node_name'
    You can change it in $default_file
\033[0m"
    fi
}