Mercurial > hg > cc > azure
view master/bin/setupTemplate.sh @ 17:2a2c1fb03c54
first cut at http/https real trial, with month and year last-modified info too
| author | Henry S. Thompson <ht@markup.co.uk> |
|---|---|
| date | Fri, 19 Oct 2018 11:36:31 +0000 |
| parents | c1c8275bd194 |
| children | cc065b2a2543 |
line wrap: on
line source
#!/bin/bash ip=$1 #ssh -o StrictHostKeyChecking=no $ip </var/cc/workers/bin/setupTemplate.sh # Not necessary as will happen automatically in vmss setup if/when run from cc # ssh -o StrictHostKeyChecking=no $ip "sudo su -c 'cd ~/.ssh && cat >authorized_keys' cc" < /var/cc/ak 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 -"
