diff options
author | Tristan Sloughter <[email protected]> | 2017-09-05 12:28:19 -0700 |
---|---|---|
committer | Tristan Sloughter <[email protected]> | 2018-01-14 16:20:48 -0800 |
commit | d5239606a6dd10cd22fe868fe522816227b194ef (patch) | |
tree | 0f9edbae9a4b38c7d5fc0dcd24f1c318d44ca7a8 /lib/sasl/src/systools_make.erl | |
parent | d99803e7625e474dee40f0dfebf2b8092add0336 (diff) | |
download | otp-d5239606a6dd10cd22fe868fe522816227b194ef.tar.gz otp-d5239606a6dd10cd22fe868fe522816227b194ef.tar.bz2 otp-d5239606a6dd10cd22fe868fe522816227b194ef.zip |
support sys.config.src in place of sys.config that is not verified
Diffstat (limited to 'lib/sasl/src/systools_make.erl')
-rw-r--r-- | lib/sasl/src/systools_make.erl | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lib/sasl/src/systools_make.erl b/lib/sasl/src/systools_make.erl index 391b1fb5cc..b960b61304 100644 --- a/lib/sasl/src/systools_make.erl +++ b/lib/sasl/src/systools_make.erl @@ -310,6 +310,7 @@ add_apply_upgrade(Script,Args) -> %% RelVsn/start.boot %% relup %% sys.config +%% sys.config.src %% erts-EVsn[/bin] %%----------------------------------------------------------------- @@ -1552,6 +1553,7 @@ create_kernel_procs(Appls) -> %% RelVsn/start.boot %% relup %% sys.config +%% sys.config.src %% erts-EVsn[/bin] %% %% The VariableN.tar.gz files can also be stored as own files not @@ -1707,14 +1709,18 @@ add_system_files(Tar, RelName, Release, Path1) -> add_to_tar(Tar, Relup, filename:join(RelVsnDir, "relup")) end, - case lookup_file("sys.config", Path) of - false -> - ignore; - Sys -> - check_sys_config(Sys), - add_to_tar(Tar, Sys, filename:join(RelVsnDir, "sys.config")) + case lookup_file("sys.config.src", Path) of + false -> + case lookup_file("sys.config", Path) of + false -> + ignore; + Sys -> + check_sys_config(Sys), + add_to_tar(Tar, Sys, filename:join(RelVsnDir, "sys.config")) + end; + SysSrc -> + add_to_tar(Tar, SysSrc, filename:join(RelVsnDir, "sys.config.src")) end, - ok. lookup_file(Name, [Dir|Path]) -> |