aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates/bin_windows
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_windows
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_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