Change-Id: Iaaaffd8e0199cb7352c8547845b334e0ae4d4554
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
juju status > status.txt
if [ "$(grep -c "waiting" status.txt )" -ge 4 ]; then
echo " still waiting for machines ..."
- if [ $timeoutiter -ge 360 ]; then
+ if [ $timeoutiter -ge 240 ]; then
retval=1
fi
timeoutiter=$((timeoutiter+1))
if [ ! -e ~maas/.ssh/id_rsa.pub ]; then
sudo su - $USER -c "echo |ssh-keygen -t rsa -f $HOME/id_rsa_maas"
sudo -u maas mkdir ~maas/.ssh/ || true
- sudo cp $HOME/id_rsa_maas* ~maas/.ssh/id_rsa
+ sudo cp $HOME/id_rsa_maas ~maas/.ssh/id_rsa
sudo cp $HOME/id_rsa_maas.pub ~maas/.ssh/id_rsa.pub
fi