Created
July 13, 2011 04:51
-
-
Save davidsantiago/1079736 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "Add java environment to /etc/environment..." | |
| { pallet_set_env() { | |
| FLAGS "$@" || exit 1 | |
| eval set -- "${FLAGS_ARGV}" | |
| k=$1 | |
| v=$2 | |
| s=$3 | |
| if [ ! $(grep "${s}" /etc/environment) ]; then | |
| sed -i -e "/${k}/ d" -e "$ a \\ | |
| ${s}" /etc/environment | |
| fi | |
| } && pallet_set_env JAVA_HOME $(dirname $(dirname $(update-alternatives --list javac))) JAVA_HOME="$(dirname $(dirname $(update-alternatives --list javac)))"; } || { echo "Add java environment to /etc/environment" failed; exit 1; } >&2 | |
| echo "...done" | |
| When I run pallet, the run ends with: | |
| Add java environment to /etc/environment... | |
| ./sudocmdRBzuj: line 395: FLAGS: command not found | |
| logout | |
| ERROR execute - Exit status : 1 | |
| INFO core - apply-phase :pallet.phase/post-configure for :stage with 1 nodes | |
| INFO execute - execute-with-ssh on stage "50.16.99.104" | |
| INFO execute - Admin user david /Users/David/.ssh/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment