diff --git a/bin/nodetool b/bin/nodetool index 9838c7813..a96f5f9fd 100755 --- a/bin/nodetool +++ b/bin/nodetool @@ -358,7 +358,10 @@ add_libs_dir() -> %% rel file was been deleted by release handler error({failed_to_read_RELEASES_file, RelFile, Reason}) end, - PatchesDir = filename:join([RootDir, "data", "patches"]), + ok = add_patches_dir(filename:join([RootDir, "data", "patches"])), + ok = add_patches_dir("/var/lib/emqx/patches"). + +add_patches_dir(PatchesDir) -> case filelib:is_dir(PatchesDir) of true -> true = code:add_patha(PatchesDir),