aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2016-01-30 10:04:47 -0600
committerTristan Sloughter <[email protected]>2016-01-30 10:04:47 -0600
commit869127113f3ea2e76636ff9b570e6e139c03c97d (patch)
tree60c391947c8ab080ac4f70ad9fe538833bb0e564 /priv/templates/bin
parent5221acdf8f79a26d4438cb26c4215af22ac04400 (diff)
parent447df9204eddb92e3ce8ace581add4e7bba040e1 (diff)
downloadrelx-869127113f3ea2e76636ff9b570e6e139c03c97d.tar.gz
relx-869127113f3ea2e76636ff9b570e6e139c03c97d.tar.bz2
relx-869127113f3ea2e76636ff9b570e6e139c03c97d.zip
Merge pull request #441 from erlanger/master
replacing OS vars: comply with otp sys.config requirement
Diffstat (limited to 'priv/templates/bin')
-rwxr-xr-xpriv/templates/bin10
1 files changed, 10 insertions, 0 deletions
diff --git a/priv/templates/bin b/priv/templates/bin
index 0b439c3..8bb6890 100755
--- a/priv/templates/bin
+++ b/priv/templates/bin
@@ -32,6 +32,11 @@ find_sys_config() {
__possible_sys="$REL_DIR/sys.config"
if [ -f "$__possible_sys" ]; then
SYS_CONFIG="$__possible_sys"
+ else
+ if [ -L "$__possible_sys".orig ]; then
+ mv "$__possible_sys".orig "$__possible_sys"
+ SYS_CONFIG="$__possible_sys"
+ fi
fi
}
@@ -39,6 +44,11 @@ find_vm_args() {
__possible_vm_args="$REL_DIR/vm.args"
if [ -f "$__possible_vm_args" ]; then
VM_ARGS="$__possible_vm_args"
+ else
+ if [ -L "$__possible_vm_args".orig ]; then
+ mv "$__possible_vm_args".orig "$__possible_vm_args"
+ VM_ARGS="$__possible_vm_args"
+ fi
fi
}