Mercurial > hg > cc > azure
comparison master/bin/setupTemplate.sh @ 6:a3b30e707e83
assume we are cc
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 29 Sep 2018 14:50:30 +0000 |
parents | 580221a17890 |
children | c1c8275bd194 |
comparison
equal
deleted
inserted
replaced
5:580221a17890 | 6:a3b30e707e83 |
---|---|
2 ip=$1 | 2 ip=$1 |
3 #ssh -o StrictHostKeyChecking=no $ip </var/cc/workers/bin/setupTemplate.sh | 3 #ssh -o StrictHostKeyChecking=no $ip </var/cc/workers/bin/setupTemplate.sh |
4 # Not necessary as will happen automatically in vmss setup if/when run from cc | 4 # Not necessary as will happen automatically in vmss setup if/when run from cc |
5 # ssh -o StrictHostKeyChecking=no $ip "sudo su -c 'cd ~/.ssh && cat >authorized_keys' cc" < /var/cc/ak | 5 # ssh -o StrictHostKeyChecking=no $ip "sudo su -c 'cd ~/.ssh && cat >authorized_keys' cc" < /var/cc/ak |
6 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 | 6 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 |
7 #( cd ~ && tar -czf - .azure ) | ssh cc@$ip "tar -xzf -" | 7 ( cd ~ && tar -czf - .azure ) | ssh $ip "tar -xzf -" |