diff options
author | John Estabrook <jestabro@vyos.io> | 2024-10-23 18:50:46 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2024-10-27 21:17:35 -0500 |
commit | a2781efcf74f4ffedd35ca48a742b215351487ac (patch) | |
tree | d0d057bb55d712c41cdb5cc21c6b535f6dc34c74 /src/startup.ml | |
parent | 1e4123ccc673690c46c00e93453e32f0402f5c0b (diff) | |
download | vyconf-a2781efcf74f4ffedd35ca48a742b215351487ac.tar.gz vyconf-a2781efcf74f4ffedd35ca48a742b215351487ac.zip |
T6718: restrict directory existence check to validators dir
Diffstat (limited to 'src/startup.ml')
-rw-r--r-- | src/startup.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/startup.ml b/src/startup.ml index 7418a81..beb125e 100644 --- a/src/startup.ml +++ b/src/startup.ml @@ -46,6 +46,12 @@ let check_dirs dirs = | Ok _ -> () | Error err -> panic err +let check_validators_dir dirs = + let res = Vyconfd_config.Directories.test_validators_dir dirs in + match res with + | Ok _ -> () + | Error err -> panic err + let delete_socket_if_exists sockfile = try let _ = Unix.stat sockfile in |