annotate master/bin/setupTemplate.sh @ 23:cc065b2a2543

more tweaks wrt getting H4 going
author Henry S. Thompson <ht@markup.co.uk>
date Wed, 31 Oct 2018 21:42:34 +0000
parents c1c8275bd194
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
580221a17890 comment out a lot not needed for vmss
Henry S. Thompson <ht@markup.co.uk>
parents: 4
diff changeset
1 #!/bin/bash
4
56d8823c68e0 pretty much complete...
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
2 ip=$1
14
c1c8275bd194 trying to make this work
Henry S. Thompson <ht@markup.co.uk>
parents: 6
diff changeset
3 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
a3b30e707e83 assume we are cc
Henry S. Thompson <ht@markup.co.uk>
parents: 5
diff changeset
4 ( cd ~ && tar -czf - .azure ) | ssh $ip "tar -xzf -"
23
cc065b2a2543 more tweaks wrt getting H4 going
Henry S. Thompson <ht@markup.co.uk>
parents: 14
diff changeset
5 ssh -o StrictHostKeyChecking=no $ip "sudo su -c 'cd ~/.ssh && cat >authorized_keys' cc" < /var/cc/ak