Point AWS environment variables at LinkedKeg
(rather than the version being installed) This avoids having to change the variable when a different version is linked. Also ensure the private key / cert variables point to only 1 file. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
84ad9d322b
commit
9158f68561
@ -30,7 +30,7 @@ class AmazonWebServicesFormula < Formula
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Use this method to generate standard caveats.
|
# Use this method to generate standard caveats.
|
||||||
def standard_instructions var_name, var_value=prefix+'jars'
|
def standard_instructions var_name, var_value=linked_keg+'jars'
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
Before you can use these tools you must export some variables to your $SHELL
|
Before you can use these tools you must export some variables to your $SHELL
|
||||||
and download your X.509 certificate and private key from Amazon Web Services.
|
and download your X.509 certificate and private key from Amazon Web Services.
|
||||||
@ -46,8 +46,8 @@ class AmazonWebServicesFormula < Formula
|
|||||||
* On Zsh, add them to `~/.zprofile` instead.
|
* On Zsh, add them to `~/.zprofile` instead.
|
||||||
|
|
||||||
export JAVA_HOME="$(/usr/libexec/java_home)"
|
export JAVA_HOME="$(/usr/libexec/java_home)"
|
||||||
export EC2_PRIVATE_KEY="$(/bin/ls $HOME/.ec2/pk-*.pem)"
|
export EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)"
|
||||||
export EC2_CERT="$(/bin/ls $HOME/.ec2/cert-*.pem)"
|
export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)"
|
||||||
export #{var_name}="#{var_value}"
|
export #{var_name}="#{var_value}"
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user