summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/value_checker.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/value_checker.ml b/src/value_checker.ml
index d94f99d..9e6dae8 100644
--- a/src/value_checker.ml
+++ b/src/value_checker.ml
@@ -28,6 +28,8 @@ let validate_value dir buf value_constraint value =
| None ->
Printf.sprintf "%s \'%s\' 2>&1" validator value
in
+ let () = Unix.putenv "vyos_libexec_dir" "/usr/libexec/vyos" in
+ let () = Unix.putenv "vyos_validators_dir" "/usr/libexec/vyos/validators" in
let chan = Unix.open_process_in cmd in
let out = try CCIO.read_all chan with _ -> "" in
let result = Unix.close_process_in chan in