annotate master/bin/setupTemplate.sh @ 4:56d8823c68e0

pretty much complete...
author Henry S. Thompson <ht@markup.co.uk>
date Fri, 28 Sep 2018 15:18:07 +0000
parents
children 580221a17890
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
56d8823c68e0 pretty much complete...
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
1 #!/usr/bin/bash
56d8823c68e0 pretty much complete...
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
2 ip=$1
56d8823c68e0 pretty much complete...
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
3 ssh -o StrictHostKeyChecking=no $ip </var/cc/workers/bin/setupTemplate.sh
56d8823c68e0 pretty much complete...
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
4 ssh $ip "sudo su -c 'cd ~/.ssh && cat >authorized_keys' cc" < /var/cc/ak
56d8823c68e0 pretty much complete...
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
5 ssh $ip </var/cc/workers/bin/installInTemplate.sh | tee /dev/stderr | tail -1 | sudo tee -a ~cc/.ssh/authorized_keys >/dev/null
56d8823c68e0 pretty much complete...
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
6 ( cd ~ && tar -czf - .azure ) | ssh cc@$ip "tar -xzf -"