moving around set -e to see if that changes anything
This commit is contained in:
1 parent
daebad9b88
commit
5af2055c82
1 file changed
+1
-1
+1
-1
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
|
||||||
KEYNAME="$1"
|
KEYNAME="$1"
|
||||||
indent() { sed "s/^/ /"; }
|
indent() { sed "s/^/ /"; }
|
||||||
echo "-----> Booting EC2 instance..."
|
echo "-----> Booting EC2 instance..."
|
||||||
@@ -32,6 +31,7 @@ while [[ ! $(echo | nc $PUBLIC_IP 22) ]]; do
|
|||||||
sleep 5
|
sleep 5
|
||||||
echo " Waiting..."
|
echo " Waiting..."
|
||||||
done
|
done
|
||||||
|
set -e
|
||||||
echo "-----> Connecting and running boostrap script..."
|
echo "-----> Connecting and running boostrap script..."
|
||||||
cat ../bootstrap.sh | ssh -o "StrictHostKeyChecking=no" ubuntu@$PUBLIC_IP "HOSTNAME=$PUBLIC_IP sudo bash" 2>&1 | indent
|
cat ../bootstrap.sh | ssh -o "StrictHostKeyChecking=no" ubuntu@$PUBLIC_IP "HOSTNAME=$PUBLIC_IP sudo bash" 2>&1 | indent
|
||||||
echo "-----> Installing SSH public keys..."
|
echo "-----> Installing SSH public keys..."
|
||||||
|
|||||||
Reference in new issue
Block a user