Skip to content

Commit

Permalink
update mainnet installer
Browse files Browse the repository at this point in the history
update env and branch to mainnet
  • Loading branch information
zeroxbt authored Dec 15, 2022
2 parents dde5bd5 + 99e85a8 commit e85041c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions installer/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Installs the V6 Beta Stage 1 Node
Installs the V6 Node

2. Login to the server as root. You __cannot__ use sudo and run this script. The command "npm install" __will__ fail.

3. Execute the following command:

```
apt install git -y && cd /root && wget https://raw.githubusercontent.com/OriginTrail/ot-node/v6/develop/installer/installer.sh && chmod +x installer.sh && . installer.sh
cd /root/ && curl https://raw.githubusercontent.com/OriginTrail/ot-node/v6/release/mainnet/installer/installer.sh --output installer.sh && chmod +x installer.sh
```

6 changes: 3 additions & 3 deletions installer/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ install_aliases() {

install_directory() {
ARCHIVE_REPOSITORY_URL="github.com/OriginTrail/ot-node/archive"
BRANCH="v6/release/testnet"
BRANCH_DIR="/root/ot-node-6-release-testnet"
BRANCH="v6/release/mainnet"
BRANCH_DIR="/root/ot-node-6-release-mainnet"

perform_step wget https://$ARCHIVE_REPOSITORY_URL/$BRANCH.zip "Downloading node files"
perform_step unzip *.zip "Unzipping node files"
Expand Down Expand Up @@ -254,7 +254,7 @@ install_node() {

perform_step npm ci --omit=dev --ignore-scripts "Executing npm install"

echo "NODE_ENV=testnet" >> $OTNODE_DIR/.env
echo "NODE_ENV=mainnet" >> $OTNODE_DIR/.env

perform_step touch $CONFIG_DIR/.origintrail_noderc "Configuring node config file"
perform_step $(jq --null-input --arg tripleStore "$tripleStore" '{"logLevel": "trace", "auth": {"ipWhitelist": ["::1", "127.0.0.1"]}, "modules": {"tripleStore":{"defaultImplementation": $tripleStore}}}' > $CONFIG_DIR/.origintrail_noderc) "Adding tripleStore $tripleStore to node config file"
Expand Down

0 comments on commit e85041c

Please sign in to comment.