Skip to content

Instantly share code, notes, and snippets.

@613038475
Created March 14, 2014 12:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 613038475/9546619 to your computer and use it in GitHub Desktop.
Save 613038475/9546619 to your computer and use it in GitHub Desktop.
riak 1.4.8 ssl_args.patch
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