Created
March 14, 2014 12:16
-
-
Save 613038475/9546619 to your computer and use it in GitHub Desktop.
riak 1.4.8 ssl_args.patch
This file contains 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
diff --git a/env.sh.orig b/env.sh | |
index 43e991d..9a38a03 100755 | |
--- a/env.sh.orig | |
+++ b/env.sh | |
@@ -78,6 +78,9 @@ if [ -z "$COOKIE_ARG" ]; then | |
exit 1 | |
fi | |
+# Extract target ssl settings | |
+SSL_ARG=`grep -e '^\-ssl_dist_opt' -e '^\-proto_dist' $RUNNER_ETC_DIR/vm.args | tr '\n' ' '` | |
+ | |
# Parse out release and erts info | |
START_ERL=`cat $RUNNER_BASE_DIR/releases/start_erl.data` | |
ERTS_VSN=${START_ERL% *} | |
@@ -87,6 +90,7 @@ APP_VSN=${START_ERL#* } | |
ERTS_PATH=$RUNNER_BASE_DIR/erts-$ERTS_VSN/bin | |
# Setup command to control the node | |
+export ERL_FLAGS="$ERL_FLAGS $SSL_ARG" | |
NODETOOL="$ERTS_PATH/escript $ERTS_PATH/nodetool $NAME_ARG $COOKIE_ARG" | |
NODETOOL_LITE="$ERTS_PATH/escript $ERTS_PATH/nodetool" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment