aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin
diff options
context:
space:
mode:
authorerlanger <erlanger>2016-01-23 12:48:55 -0500
committererlanger <erlanger>2016-01-23 13:56:01 -0500
commit447df9204eddb92e3ce8ace581add4e7bba040e1 (patch)
tree60c391947c8ab080ac4f70ad9fe538833bb0e564 /priv/templates/bin
parent1b159fed973f30e545228b99494cf5c3680b30a0 (diff)
downloadrelx-447df9204eddb92e3ce8ace581add4e7bba040e1.tar.gz
relx-447df9204eddb92e3ce8ace581add4e7bba040e1.tar.bz2
relx-447df9204eddb92e3ce8ace581add4e7bba040e1.zip
replacing OS vars: use .orig files to prevent overwriting
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
}