#!/bin/bash # Script to initialize a testnet settings on a server #Usage: terraform.sh #Add gaiad node number for remote identification REGION="$(($2 + 1))" RNODE="$(($3 + 1))" ID="$((${REGION} * 100 + ${RNODE}))" echo "$ID" > /etc/gaiad-nodeid #Create gaiad user useradd -m -s /bin/bash gaiad #Reload services to enable the gaiad service (note that the gaiad binary is not available yet) systemctl daemon-reload systemctl enable gaiad