From 1e34254c898742c555a0f669ab74a71cd9b436b8 Mon Sep 17 00:00:00 2001 From: mmigdiso Date: Wed, 20 May 2020 10:33:12 +0300 Subject: [PATCH] removing hardcoded -site extension As we are already passing the path information to the configure() function, there is no need to regenerate the file name using static -site extension. By doing so, This function can be used for configuration files that do not end with site.xml such as capacity-scheduler.xml --- base/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/entrypoint.sh b/base/entrypoint.sh index 37e8f40..e0ed7f4 100644 --- a/base/entrypoint.sh +++ b/base/entrypoint.sh @@ -27,7 +27,7 @@ function configure() { var="${envPrefix}_${c}" value=${!var} echo " - Setting $name=$value" - addProperty /etc/hadoop/$module-site.xml $name "$value" + addProperty $path $name "$value" done }