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

Commit 4cc20b8

Browse files
author
Dwai Banerjee
authored
Update setup-replica.sh
1 parent 77b6893 commit 4cc20b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup-replica.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ fi
101101
echo $(date) " - Staring Swarm Join as Manager to Leader UCP Controller"
102102
apt-get -y update && apt-get install -y curl jq
103103
# Create an environment variable with the user security token
104-
AUTHTOKEN=$(curl -sk -d '{"username":"admin","password":"'"$PASSWORD"'"}' https://10.2.0.6/auth/login | jq -r .auth_token)
104+
AUTHTOKEN=$(curl -sk -d '{"username":"admin","password":"'"$PASSWORD"'"}' https://ucpclus0-ucpctrl/auth/login | jq -r .auth_token)
105105
echo "$AUTHTOKEN"
106106
# Download the client certificate bundle
107-
curl -k -H "Authorization: Bearer ${AUTHTOKEN}" https://10.2.0.6/api/clientbundle -o bundle.zip
107+
curl -k -H "Authorization: Bearer ${AUTHTOKEN}" https://ucpclus0-ucpctrl/api/clientbundle -o bundle.zip
108108
unzip bundle.zip && chmod 755 env.sh && source env.sh
109109
docker swarm join-token manager|sed '1d'|sed '1d'|sed '$ d'>swarmjoin.sh
110110
unset DOCKER_TLS_VERIFY

0 commit comments

Comments
 (0)