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
This commit is contained in:
mmigdiso 2020-05-20 10:33:12 +03:00 committed by GitHub
parent f30f0d4975
commit 1e34254c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ function configure() {
var="${envPrefix}_${c}" var="${envPrefix}_${c}"
value=${!var} value=${!var}
echo " - Setting $name=$value" echo " - Setting $name=$value"
addProperty /etc/hadoop/$module-site.xml $name "$value" addProperty $path $name "$value"
done done
} }