mirror of https://github.com/apache/druid.git
fix issue causing incorrect config in Docker (#10595)
Previously, when the Docker entrypoint script generated the config files, it would append the configuration without including a newline. This could result in incorrect configuration. This has been fixed by always appending a newline before any configuration. Co-authored-by: Bryson Chen <brysonjackychen@gmail.com> Co-authored-by: Bryson Chen <brysonjackychen@gmail.com>
This commit is contained in:
parent
2201ffa2f0
commit
3cafd531de
|
@ -71,8 +71,8 @@ setKey() {
|
||||||
# Delete from all
|
# Delete from all
|
||||||
sed -ri "/$key=/d" $COMMON_CONF_DIR/common.runtime.properties
|
sed -ri "/$key=/d" $COMMON_CONF_DIR/common.runtime.properties
|
||||||
[ -f $service_conf ] && sed -ri "/$key=/d" $service_conf
|
[ -f $service_conf ] && sed -ri "/$key=/d" $service_conf
|
||||||
[ -f $service_conf ] && echo "$key=$value" >>$service_conf
|
[ -f $service_conf ] && echo -e "\n$key=$value" >>$service_conf
|
||||||
[ -f $service_conf ] || echo "$key=$value" >>$COMMON_CONF_DIR/common.runtime.properties
|
[ -f $service_conf ] || echo -e "\n$key=$value" >>$COMMON_CONF_DIR/common.runtime.properties
|
||||||
|
|
||||||
echo "Setting $key=$value in $service_conf"
|
echo "Setting $key=$value in $service_conf"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue