Last active
December 19, 2015 14:58
-
-
Save erbmicha/5972531 to your computer and use it in GitHub Desktop.
patch for riak-debug script to allow symlinking (Riak v1.4.0) - FOR HOMEBREW USE ONLY
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/bin/riak-debug b/bin/riak-debug | |
index 89c7ab9..ea4bcf6 100755 | |
--- a/bin/riak-debug | |
+++ b/bin/riak-debug | |
@@ -99,9 +99,9 @@ exit | |
### | |
# These paths may be overridden with environment variables. | |
-RUNNER_BASE_DIR=$(cd ${0%/*} && pwd)/.. | |
-riak_base_dir=$(cd ${0%/*} && pwd)/.. | |
-riak_bin_dir=$(cd ${0%/*} && pwd) | |
+RUNNER_BASE_DIR=$(cd ${0%/*} && pwd)/$(dirname $(readlink $0))/.. | |
+riak_base_dir=$(cd ${0%/*} && pwd)/$(dirname $(readlink $0))/.. | |
+riak_bin_dir=$(cd ${0%/*} && pwd)/$(dirname $(readlink $0)) | |
riak_etc_dir=$RUNNER_BASE_DIR/etc | |
get_cfgs=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment