Created
July 20, 2022 23:22
-
-
Save rBurgett/9d8d265899bb3dbb83da304ee8a09fd0 to your computer and use it in GitHub Desktop.
Example script for configuring node pilot via command line arguments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
EMAIL="[email protected]" | |
PASSWORD="mypassword" | |
DOMAIN="mysubdomain.mydomain.com" | |
echo "-> Start Node Pilot" | |
./np start -d | |
echo "-> Register user" | |
./np api np_register --params.email $EMAIL --params.masterPassword $PASSWORD --params.domain $DOMAIN | |
echo "-> Configure TLS" | |
./np api np_configureTLS --params.masterPassword $PASSWORD | |
echo "-> Create POKT nodes" | |
./np api node_create --params.masterPassword $PASSWORD --params.ticker pokt --params.network TESTNET --params.password nodepassword0 | |
./np api node_create --params.masterPassword $PASSWORD --params.ticker pokt --params.network TESTNET --params.password nodepassword1 | |
./np api node_create --params.masterPassword $PASSWORD --params.ticker pokt --params.network TESTNET --params.password nodepassword2 | |
echo "-> Create chain nodes" | |
./np api node_create --params.masterPassword $PASSWORD --params.ticker eth --params.network RINKEBY | |
./np api node_create --params.masterPassword $PASSWORD --params.ticker fuse --params.network MAINNET | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment