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

Commit 6414069

Browse files
author
Dwai Banerjee
authored
Update setup-ucp-dtr-replica.sh
1 parent 9678bdb commit 6414069

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

setup-ucp-dtr-replica.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ sleep $SLEEP
4444
echo $(date) " - Staring Swarm Join as worker UCP Controller"
4545
apt-get -y update && apt-get install -y curl jq
4646
# Create an environment variable with the user security token
47-
AUTHTOKEN=$(curl -sk -d '{"username":"admin","password":"'"$PASSWORD"'"}' https://$MASTERFQDN/auth/login | jq -r .auth_token)
47+
AUTHTOKEN=$(curl -sk -d '{"username":"admin","password":"'"$PASSWORD"'"}' https://$MASTERPRIVATEIP/auth/login | jq -r .auth_token)
4848
echo "$AUTHTOKEN"
4949
# Download the client certificate bundle
50-
curl -k -H "Authorization: Bearer ${AUTHTOKEN}" https://$MASTERFQDN/api/clientbundle -o bundle.zip
50+
curl -k -H "Authorization: Bearer ${AUTHTOKEN}" https://$MASTERPRIVATEIP/api/clientbundle -o bundle.zip
5151
unzip -o bundle.zip && chmod 755 env.sh && source env.sh
5252
}
5353
joinucp() {
@@ -67,7 +67,7 @@ docker run --rm -i \
6767
--ucp-node $UCP_NODE \
6868
--ucp-insecure-tls \
6969
--dtr-external-url $DTR_PUBLIC_URL \
70-
--ucp-url https://$MASTERFQDN \
70+
--ucp-url https://$MASTERPRIVATEIP \
7171
--ucp-username admin --ucp-password $PASSWORD
7272
}
7373
joinucp;

0 commit comments

Comments
 (0)