aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin_windows
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_windows
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_windows')
-rw-r--r--priv/templates/bin_windows7
1 files changed, 7 insertions, 0 deletions
diff --git a/priv/templates/bin_windows b/priv/templates/bin_windows
index 3466292..7b1d4d8 100644
--- a/priv/templates/bin_windows
+++ b/priv/templates/bin_windows
@@ -73,6 +73,13 @@ cd %rootdir%
@if exist "%possible_sys%" (
set sys_config=-config "%possible_sys%"
)
+@if exist "%possible_sys%".orig (
+ ren "%possible_sys%".orig "%possible_sys%"
+ set sys_config=-config "%possible_sys%"
+)
+@if exist "%rel_dir%\vm.args".orig (
+ ren "%rel_dir%\vm.args" ".orig %rel_dir%\vm.args"
+)
@goto :eof
:: set boot_script variable