feat: add patches dir: data/patches

add patch dir for convenient online patching.
This commit is contained in:
William Yang 2021-04-26 21:09:46 +02:00
parent 01696ce595
commit a77aba5c74
3 changed files with 6 additions and 0 deletions

View File

@ -113,3 +113,6 @@
## Specifies how long time (in milliseconds) to spend shutting down the system.
## See: http://erlang.org/doc/man/erl.html
-shutdown_time 30000
## patches dir
-pa {{ platform_data_dir }}/patches

View File

@ -112,3 +112,5 @@
## See: http://erlang.org/doc/man/erl.html
-shutdown_time 10000
## patches dir
-pa {{ platform_data_dir }}/patches

View File

@ -310,6 +310,7 @@ relx_overlay(ReleaseType) ->
, {mkdir, "data/"}
, {mkdir, "data/mnesia"}
, {mkdir, "data/configs"}
, {mkdir, "data/patches"}
, {mkdir, "data/scripts"}
, {template, "data/loaded_plugins.tmpl", "data/loaded_plugins"}
, {template, "data/loaded_modules.tmpl", "data/loaded_modules"}