diff options
author | erlanger <erlanger> | 2016-01-23 12:48:55 -0500 |
---|---|---|
committer | erlanger <erlanger> | 2016-01-23 13:56:01 -0500 |
commit | 447df9204eddb92e3ce8ace581add4e7bba040e1 (patch) | |
tree | 60c391947c8ab080ac4f70ad9fe538833bb0e564 /priv/templates/bin | |
parent | 1b159fed973f30e545228b99494cf5c3680b30a0 (diff) | |
download | relx-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-x | priv/templates/bin | 10 |
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 } |