mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Check presence of some files during option validation
This commit is contained in:
parent
9fe16a29e1
commit
d3c8fb7705
14 changed files with 56 additions and 77 deletions
|
@ -1104,8 +1104,8 @@ opt_type(sql_server) -> fun iolist_to_binary/1;
|
|||
opt_type(sql_username) -> fun iolist_to_binary/1;
|
||||
opt_type(sql_ssl) -> fun(B) when is_boolean(B) -> B end;
|
||||
opt_type(sql_ssl_verify) -> fun(B) when is_boolean(B) -> B end;
|
||||
opt_type(sql_ssl_certfile) -> fun iolist_to_binary/1;
|
||||
opt_type(sql_ssl_cafile) -> fun iolist_to_binary/1;
|
||||
opt_type(sql_ssl_certfile) -> fun misc:try_read_file/1;
|
||||
opt_type(sql_ssl_cafile) -> fun misc:try_read_file/1;
|
||||
opt_type(sql_query_timeout) ->
|
||||
fun (I) when is_integer(I), I > 0 -> I end;
|
||||
opt_type(sql_connect_timeout) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue