Skip to content

Commit 5a96fa7

Browse files
committed
Install script tweaks
1 parent a06723a commit 5a96fa7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

cortex.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ function set_aws_credentials_from_cli() {
114114
export AWS_ACCESS_KEY_ID=$(aws --profile default configure get aws_access_key_id)
115115
export AWS_SECRET_ACCESS_KEY=$(aws --profile default configure get aws_secret_access_key)
116116

117-
echo -e "\n✓ Installation will use AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID (from AWS CLI's default profile)"
117+
echo -e "\n✓ Using AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID (from AWS CLI's default profile)"
118118
}
119119

120120
function set_aws_credentials() {
121121
if [ "$AWS_ACCESS_KEY_ID" != "" ] && [ "$AWS_SECRET_ACCESS_KEY" != "" ]; then
122-
echo -e "\n✓ Installation will use AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID (from environment variable)"
122+
echo -e "\n✓ Using AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID (from environment variable)"
123123
return
124124
fi
125125

@@ -486,11 +486,11 @@ if [ "$arg1" = "install" ]; then
486486
show_help
487487
exit 1
488488
elif [ "$arg2" = "" ]; then
489-
prompt_for_telemetry && install_eks && install_cortex && info
489+
prompt_for_telemetry && install_eks && install_cortex
490490
elif [ "$arg2" = "cli" ]; then
491491
prompt_for_email && install_cli
492492
elif [ "$arg2" = "cortex" ]; then # Undocumented (just for dev)
493-
install_cortex && info
493+
install_cortex
494494
elif [ "$arg2" = "" ]; then
495495
echo -e "\nerror: missing subcommand for install"
496496
show_help

manager/install_cortex.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ function validate_cortex() {
152152
continue
153153
fi
154154
operator_endpoint_reachable="ready"
155-
echo "{\"cortex_url\": \"$operator_endpoint\", \"aws_access_key_id\": \"$CORTEX_AWS_ACCESS_KEY_ID\", \"aws_secret_access_key\": \"$CORTEX_AWS_SECRET_ACCESS_KEY\"}" > /.cortex/default.json
156-
echo -e "\n✓ Configured CLI"
157155
fi
158156

159157
if [ "$operator_pod_ready_cycles" == "0" ] && [ "$operator_pod_name" != "" ]; then
@@ -214,4 +212,7 @@ echo "✓ Started operator"
214212

215213
validate_cortex
216214

215+
echo "{\"cortex_url\": \"$operator_endpoint\", \"aws_access_key_id\": \"$CORTEX_AWS_ACCESS_KEY_ID\", \"aws_secret_access_key\": \"$CORTEX_AWS_SECRET_ACCESS_KEY\"}" > /.cortex/default.json
216+
echo -e "✓ Configured CLI"
217+
217218
echo -e "\n✓ Cortex is ready!"

0 commit comments

Comments
 (0)