Mercurial > hg > cc > azure
diff workers/bin/installInTemplate.sh @ 18:9631fca89cc6
F2-related stuff, and new experiment
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Fri, 19 Oct 2018 14:25:19 +0000 |
parents | c1c8275bd194 |
children | cc065b2a2543 |
line wrap: on
line diff
--- a/workers/bin/installInTemplate.sh Fri Oct 19 11:36:31 2018 +0000 +++ b/workers/bin/installInTemplate.sh Fri Oct 19 14:25:19 2018 +0000 @@ -7,5 +7,8 @@ sudo apt-get -y update sudo apt-get -y install azure-cli sudo adduser --disabled-password -GECOS "CC master" cc -sudo su -c 'ssh-keygen -t rsa -N "" -f /home/cc/.ssh/id_rsa' cc +if [ ! -d ~cc/.ssh ] +then + sudo su -c 'ssh-keygen -t rsa -N "" -f /home/cc/.ssh/id_rsa' cc +fi sudo cat ~cc/.ssh/id_rsa.pub