comparison master/bin/setupTemplate.sh @ 14:c1c8275bd194

trying to make this work
author Henry S. Thompson <ht@markup.co.uk>
date Thu, 18 Oct 2018 14:30:04 +0000
parents a3b30e707e83
children cc065b2a2543
comparison
equal deleted inserted replaced
13:bba589cab837 14:c1c8275bd194
1 #!/bin/bash 1 #!/bin/bash
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 $ip "tar -xzf -" 7 ( cd ~ && tar -czf - .azure ) | ssh $ip "tar -xzf -"