Skip to content

Commit

Permalink
kafka patch for new java appears to work
Browse files Browse the repository at this point in the history
  • Loading branch information
martukas committed May 30, 2018
1 parent ff12104 commit dcdbe74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ if [[ $getfkafka =~ ^(yes|y| ) ]]; then
rm -f ./$kafkafile.tar

#patch the script for most recent java version
replace_with="JAVA_MAJOR_VERSION=\$(\$JAVA -version 2>&1 | sed -E -n 's/.* version \"([^.-]*).*\".*/\1/p')"
#awk_line='NR==4 {$0="$replace_with"} 1'
#awk 'NR==4 {$0="$replace_with"} 1' ./$kafkafile/bin/kafka-run-class.sh
mv ./$kafkafile/bin/kafka-run-class.sh ./$kafkafile/bin/old_kafka-run-class.sh
sed -e 's/\/\\1\/p/\.\*\/\\1\/p/' ./$kafkafile/bin/old_kafka-run-class.sh > ./$kafkafile/bin/kafka-run-class.sh
chmod +x ./$kafkafile/bin/kafka-run-class.sh
fi

read -r -p "Get and build EFU? [Y/n]" getefu
Expand Down

0 comments on commit dcdbe74

Please sign in to comment.