This repository was archived by the owner on Jul 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ Take note of the IP address. Go to the **core** folder and change the following
5858> value : https://169.47.241.yyy:30443/players/v1/accounts ** TO ->** value : https://169.xx.xxx.xxx:30443/players/v1/accounts
5959> ...
6060
61+ You can also use the script provided that replaces the default values.
62+ * ` ./replace_ip_linux.sh ` for linux
63+ * ` ./replace_ip_OSX.sh ` for macOS
6164
6265``` yaml
6366Core yaml files should look like this. Change the following env variables
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ kubectl get nodes
3+ IP_ADDR=$( kubectl get nodes | grep Ready | awk ' {print $1}' | head -1)
4+
5+ if [ -z " $IP_ADDR " ]
6+ then
7+ echo " IP Address not found"
8+ exit 1
9+ fi
10+
11+ for filename in core/* .yaml
12+ do
13+ sed -i ' ' s#169\. 47\. 241\. 213#$IP_ADDR # $filename
14+ done
15+
16+ sed -i ' ' s#169\. 47\. 241\. 213#$IP_ADDR # setup.yaml
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ kubectl get nodes
3+ IP_ADDR=$( kubectl get nodes | grep Ready | awk ' {print $1}' | head -1)
4+
5+ if [ -z " $IP_ADDR " ]
6+ then
7+ echo " IP Address not found"
8+ exit 1
9+ fi
10+
11+ for filename in core/* .yaml
12+ do
13+ sed -i s#169\. 47\. 241\. 213#$IP_ADDR # $filename
14+ done
15+
16+ sed -i s#169\. 47\. 241\. 213#$IP_ADDR # setup.yaml
You can’t perform that action at this time.
0 commit comments