diff options
author | Tristan Sloughter <[email protected]> | 2015-09-16 17:44:10 -0500 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2015-09-16 17:44:10 -0500 |
commit | 3dd5ab0ad5fd1f60dbab136104b82ef8558dc33a (patch) | |
tree | 2db2c09c389b4c0a7af9d6c12b60300c883fc64a /priv/templates/bin | |
parent | 979766f0f57730af8cea94aa23947026af77f286 (diff) | |
parent | f63d3ad3f42f4b6fc1cab196e19ddc98ba58e9b6 (diff) | |
download | relx-3dd5ab0ad5fd1f60dbab136104b82ef8558dc33a.tar.gz relx-3dd5ab0ad5fd1f60dbab136104b82ef8558dc33a.tar.bz2 relx-3dd5ab0ad5fd1f60dbab136104b82ef8558dc33a.zip |
Merge pull request #390 from priestjim/feature/startup-script-fixes
Startup script improvements
Diffstat (limited to 'priv/templates/bin')
-rwxr-xr-x | priv/templates/bin | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/priv/templates/bin b/priv/templates/bin index 8e3f497..3067259 100755 --- a/priv/templates/bin +++ b/priv/templates/bin @@ -2,8 +2,12 @@ set -e -SCRIPT_DIR="$(dirname "$0")" -RELEASE_ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)" +SCRIPT=$(readlink $0) +if [ -z $SCRIPT ]; then + SCRIPT=$0 +fi; +SCRIPT_DIR="$(cd `dirname "$SCRIPT"` && pwd -P)" +RELEASE_ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd -P)" REL_NAME="{{ rel_name }}" REL_VSN="{{ rel_vsn }}" ERTS_VSN="{{ erts_vsn }}" |