Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit be89582

Browse files
author
Dwai Banerjee
authored
Update setup-ucp-node.sh
1 parent 4cc20b8 commit be89582

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup-ucp-node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ fi
7272
echo $(date) " - Staring Swarm Join as worker UCP Controller"
7373
apt-get -y update && apt-get install -y curl jq
7474
# Create an environment variable with the user security token
75-
AUTHTOKEN=$(curl -sk -d '{"username":"admin","password":"'"$PASSWORD"'"}' https://10.2.0.6/auth/login | jq -r .auth_token)
75+
AUTHTOKEN=$(curl -sk -d '{"username":"admin","password":"'"$PASSWORD"'"}' https://ucpclus0-ucpctrl/auth/login | jq -r .auth_token)
7676
echo "$AUTHTOKEN"
7777
# Download the client certificate bundle
78-
curl -k -H "Authorization: Bearer ${AUTHTOKEN}" https://10.2.0.6/api/clientbundle -o bundle.zip
78+
curl -k -H "Authorization: Bearer ${AUTHTOKEN}" https://ucpclus0-ucpctrl/api/clientbundle -o bundle.zip
7979
unzip bundle.zip && chmod 755 env.sh && source env.sh
8080
docker swarm join-token worker|sed '1d'|sed '1d'|sed '$ d'>swarmjoin.sh
8181
unset DOCKER_TLS_VERIFY

0 commit comments

Comments
 (0)