diff --git a/packaging_docker/testnet/azure/secret-node-azure-template/scripts/secretnode.sh b/packaging_docker/testnet/azure/secret-node-azure-template/scripts/secretnode.sh index 06d364ac4..52f8e90aa 100644 --- a/packaging_docker/testnet/azure/secret-node-azure-template/scripts/secretnode.sh +++ b/packaging_docker/testnet/azure/secret-node-azure-template/scripts/secretnode.sh @@ -60,6 +60,14 @@ perl -i -pe 's/laddr = .+?26656"/laddr = "tcp:\/\/0.0.0.0:26656"/' ~/.secretd/co echo "Setting Secret Node environment variables" >> /home/$1/install.progress.txt +echo 'alias secretcli="docker exec -it secret-node_node_1 secretcli"' >> /home/"$1"/.bashrc +echo 'alias secretd="docker exec -it secret-node_node_1 secretd"' >> /home/"$1"/.bashrc +echo 'alias show-node-id="docker exec -it bootstrap secretd tendermint show-node-id"' >> /home/"$1"/.bashrc +echo 'alias show-validator="docker exec -it bootstrap secretd tendermint show-validator"' >> /home/"$1"/.bashrc + +echo 'alias stop-secret-node="docker-compose -f /usr/local/bin/secret-node/docker-compose.yaml down"' >> /home/"$1"/.bashrc +echo 'alias start-secret-node="docker-compose -f /usr/local/bin/secret-node/docker-compose.yaml up -d"' >> /home/"$1"/.bashrc + echo "export CHAINID=$2" >> /home/"$1"/.bashrc echo "export MONIKER=$3" >> /home/"$1"/.bashrc echo "export PERSISTENT_PEERS=$4" >> /home/"$1"/.bashrc