This repository was archived by the owner on Oct 12, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ sleep $SLEEP
4444echo $( date) " - Staring Swarm Join as worker UCP Controller"
4545apt-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)
4848echo " $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
5151unzip -o bundle.zip && chmod 755 env.sh && source env.sh
5252}
5353joinucp () {
@@ -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 }
7373joinucp;
You can’t perform that action at this time.
0 commit comments