Skip to content
This repository was archived by the owner on Mar 5, 2019. It is now read-only.

Commit 8962c8a

Browse files
authored
fix: correct JSON-RPC variable names (#99)
1 parent e6f90d5 commit 8962c8a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

actions/core/configure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ __core_configure_environment ()
179179
grep -q '^ARK_GRAPHQL_HOST' "$envFile" 2>&1 || echo 'ARK_GRAPHQL_HOST=0.0.0.0' >> "$envFile" 2>&1
180180
grep -q '^ARK_GRAPHQL_PORT' "$envFile" 2>&1 || echo 'ARK_GRAPHQL_PORT=4005' >> "$envFile" 2>&1
181181

182-
grep -q '^ARK_JSONRPC_HOST' "$envFile" 2>&1 || echo 'ARK_JSONRPC_HOST=0.0.0.0' >> "$envFile" 2>&1
183-
grep -q '^ARK_JSONRPC_PORT' "$envFile" 2>&1 || echo 'ARK_JSONRPC_PORT=8080' >> "$envFile" 2>&1
182+
grep -q '^ARK_JSON_RPC_HOST' "$envFile" 2>&1 || echo 'ARK_JSON_RPC_HOST=0.0.0.0' >> "$envFile" 2>&1
183+
grep -q '^ARK_JSON_RPC_PORT' "$envFile" 2>&1 || echo 'ARK_JSON_RPC_PORT=8080' >> "$envFile" 2>&1
184184

185185
success "Created Environment configuration!"
186186
}

actions/core/configure/hosts-and-ports.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ core_configure_hosts_and_ports ()
7474
read -p "Would you like to configure the JSON-RPC API? [y/N] : " choice
7575

7676
if [[ "$choice" =~ ^(yes|y|Y) ]]; then
77-
read -p "Enter the JSON-RPC host, or press ENTER for the default [${ARK_JSONRPC_HOST}]: " inputHost
78-
read -p "Enter the JSON-RPC port, or press ENTER for the default [${ARK_JSONRPC_PORT}]: " inputPort
77+
read -p "Enter the JSON-RPC host, or press ENTER for the default [${ARK_JSON_RPC_HOST}]: " inputHost
78+
read -p "Enter the JSON-RPC port, or press ENTER for the default [${ARK_JSON_RPC_PORT}]: " inputPort
7979

8080
if [[ ! -z "$inputHost" ]]; then
81-
sed -i -e "s/ARK_JSONRPC_HOST=$ARK_JSONRPC_HOST/ARK_JSONRPC_HOST=$inputHost/g" "$envFile"
81+
sed -i -e "s/ARK_JSON_RPC_HOST=$ARK_JSON_RPC_HOST/ARK_JSON_RPC_HOST=$inputHost/g" "$envFile"
8282
fi
8383

8484
if [[ ! -z "$inputPort" ]]; then
85-
sed -i -e "s/ARK_JSONRPC_PORT=$ARK_JSONRPC_PORT/ARK_JSONRPC_PORT=$inputPort/g" "$envFile"
85+
sed -i -e "s/ARK_JSON_RPC_PORT=$ARK_JSON_RPC_PORT/ARK_JSON_RPC_PORT=$inputPort/g" "$envFile"
8686
fi
8787
fi
8888

0 commit comments

Comments
 (0)