Mercurial > hg > cc > azure
view master/bin/setupTemplate.sh @ 65:e1f61f94b196
switch to curl->file, enable retries
| author | Henry S. Thompson <ht@markup.co.uk> |
|---|---|
| date | Thu, 04 Jun 2020 12:08:29 +0000 |
| parents | cc065b2a2543 |
| children |
line wrap: on
line source
#!/bin/bash ip=$1 ssh -o StrictHostKeyChecking=no $ip </var/cc/workers/bin/installInTemplate.sh | tee /dev/stderr | tail -1 | sudo tee -a ~cc/.ssh/authorized_keys >/dev/null ( cd ~ && tar -czf - .azure ) | ssh $ip "tar -xzf -" ssh -o StrictHostKeyChecking=no $ip "sudo su -c 'cd ~/.ssh && cat >authorized_keys' cc" < /var/cc/ak
