File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ INSTANCE_GROUP=""
1818# ###############################
1919export NGINX_ONE_HOST=" ${NGINX_AGENT_SERVER_HOST:- agent.connect.nginx.com} "
2020export AGENT_GROUP=" ${AGENT_GROUP:- $(id -ng)} "
21- RED=' \033[0;31m'
22- NC=' \033[0m'
21+
22+ RED_COLOUR=' \033[0;31m'
23+ NO_COLOUR=' \033[0m'
2324
2425# Determine OS platform
2526# shellcheck source=/dev/null
@@ -125,9 +126,9 @@ update_config_file() {
125126 echo " NGINX Agent server host should be ${NGINX_ONE_HOST} "
126127
127128 if grep -q " $NGINX_ONE_HOST " ${v2_config_file} ; then
128- echo " NGINX One connected agent "
129+ echo " NGINX Agent is connected to NGINX One "
129130 else
130- echo " ${RED } Previous version of NGINX Agent was not connected to NGINX One. Stopping upgrade. ${NC }"
131+ echo " ${RED_COLOUR } Previous version of NGINX Agent was not connected to NGINX One. Stopping upgrade${NO_COLOUR }"
131132 exit 1
132133 fi
133134
Original file line number Diff line number Diff line change 77# NGINX Agent script for converting NGINX AGENT V2 config format to V3 config format
88
99export NGINX_ONE_HOST=" ${NGINX_AGENT_SERVER_HOST:- agent.connect.nginx.com} "
10- RED=' \033[0;31m'
11- NC=' \033[0m'
10+
11+ RED_COLOUR=' \033[0;31m'
12+ NO_COLOUR=' \033[0m'
1213
1314for i in " $@ " ; do
1415 case $i in
3233echo " NGINX Agent server host should be ${NGINX_ONE_HOST} "
3334
3435if grep -q " $NGINX_ONE_HOST " ${v2_config_file} ; then
35- echo " N1 connected agent "
36+ echo " NGINX Agent is connected to NGINX One "
3637else
37- echo " ${RED } Previous version of NGINX Agent was not connected to NGINX One. Stopping upgrade. ${NC }"
38+ echo " ${RED_COLOUR } Previous version of NGINX Agent was not connected to NGINX One. Stopping upgrade${NO_COLOUR }"
3839 exit 1
3940fi
4041
You can’t perform that action at this time.
0 commit comments