Skip to content

Commit

Permalink
create missing dirs
Browse files Browse the repository at this point in the history
Signed-off-by: Furkan Türkal <[email protected]>
  • Loading branch information
Dentrax committed Mar 20, 2024
1 parent a97a0d7 commit b9deb82
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions confluent-kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,20 @@ pipeline:
tar -xzvf core/build/distributions/kafka_*-${{vars.mangled-package-version}}.tgz
mkdir -p ${{targets.destdir}}/usr/lib/kafka/logs
mkdir -p ${{targets.destdir}}/etc/kafka
mkdir -p ${{targets.destdir}}/var/lib/kafka/data
mv kafka_*-${{vars.mangled-package-version}}/bin ${{targets.destdir}}/usr/lib/kafka
mv kafka_*-${{vars.mangled-package-version}}/libs ${{targets.destdir}}/usr/lib/kafka
mv kafka_*-${{vars.mangled-package-version}}/config ${{targets.destdir}}/usr/lib/kafka
# Install required runtime scripts
mkdir -p ${{targets.destdir}}/usr/bin
for file in $(find ./bin -type f -exec grep -lE '^#!(/usr/bin/env |/bin/)' {} \;); do
filename=$(basename "$f")
install -D -m755 "$file" ${{targets.destdir}}/usr/bin/"$filename"
done
# Clean up windows
rm -rf ${{targets.destdir}}/usr/lib/kafka/bin/*.bat
Expand Down

0 comments on commit b9deb82

Please sign in to comment.