From 6d1e94b0cb233f7ef7266afb84b488bd5f5c5698 Mon Sep 17 00:00:00 2001 From: Cashmaney Date: Tue, 14 Jul 2020 11:48:01 +0300 Subject: [PATCH 1/2] more aliases --- .../secret-node-azure-template/scripts/secretnode.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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..c784b465c 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-node-id"' >> /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 From 1ce17e522b5faf5f75f02314522493486e6a0a0c Mon Sep 17 00:00:00 2001 From: Cashmaney Date: Tue, 14 Jul 2020 12:25:13 +0300 Subject: [PATCH 2/2] Update secretnode.sh --- .../azure/secret-node-azure-template/scripts/secretnode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c784b465c..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 @@ -63,7 +63,7 @@ echo "Setting Secret Node environment variables" >> /home/$1/install.progress.tx 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-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