Skip to content

Commit

Permalink
Avoids a temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Apr 8, 2018
1 parent baa2011 commit 924c2aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kafka/10broker-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ data:
kubectl -n $POD_NAMESPACE annotate pod $POD_NAME $ANNOTATIONS || echo "Failed to annotate $POD_NAMESPACE.$POD_NAME - RBAC issue?"
fi
}
printf '%s\n' "${SEDS[@]}" > /tmp/kafka-init-config.sed
sed -f /tmp/kafka-init-config.sed /etc/kafka-configmap/server.properties > /etc/kafka/server.properties.tmp
printf '%s\n' "${SEDS[@]}" | sed -f - /etc/kafka-configmap/server.properties > /etc/kafka/server.properties.tmp
[ $? -eq 0 ] && mv /etc/kafka/server.properties.tmp /etc/kafka/server.properties
[ -f /etc/kafka/server.properties ] && echo "Ready for Kafka start" && tail -f /dev/null
Expand Down

0 comments on commit 924c2aa

Please sign in to comment.