normalizing shebang and bash options. also added long-term fix for bootstrap instructions

This commit is contained in:
Jeff Lindsay
2013-10-29 17:13:02 -05:00
parent 14b71cec87
commit df7507d1be
15 changed files with 32 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/bash
set -e
#!/usr/bin/env bash
set -eo pipefail
KEYNAME="$1"
indent() { sed "s/^/ /"; }
echo "-----> Booting EC2 instance..."

View File

@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail
SELF=`which $0`
VAGRANT_SSH_PORT=${VAGRANT_SSH_PORT:-"2222"}
PUBLIC_KEY=${PUBLIC_KEY:-"$HOME/.ssh/id_rsa.pub"}

View File

@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail
sed --in-place "s|access_key|access_key = $AWS_ACCESS_KEY|" .s3cfg
sed --in-place "s|secret_key|secret_key = $AWS_SECRET_KEY|" .s3cfg
s3cmd -c .s3cfg get s3://progrium-private/ec2_cert.pem /tmp/cert

View File

@@ -1,5 +1,5 @@
#!/bin/bash
set -e
#!/usr/bin/env bash
set -eo pipefail
SELF=`which $0`; APP="$1"; TARGET="$2"; FORWARDED_PORT="$3"
TMP=$(mktemp -d -t "$TARGET.XXXXX")
trap "rm -rf $TMP" EXIT