From d0ccd80850ee83a6648eb9d76855e9a6e9e43c18 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Mon, 4 Sep 2023 10:04:14 +0200 Subject: [PATCH] fix(nodetool): ensure patches dir added for rpm/deb installs --- bin/nodetool | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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),