mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
burpsuite: add an annoying message about java vm being too old
This commit is contained in:
parent
08ead8f62b
commit
2b7c0e1757
1 changed files with 6 additions and 0 deletions
|
|
@ -48,6 +48,12 @@ src_install() {
|
|||
|
||||
newbin - ${PN} <<-EOF
|
||||
#!/bin/sh
|
||||
if java -version 2>&1 | grep -q '1.8.0'; then
|
||||
printf "Selected java is too old, please select a newer java vm\n"
|
||||
printf "Pick a new vm from 'eselect java-vm list' and set with 'eselect java-vm set system #'\n"
|
||||
printf "You may also have to set your user vm with 'eselect java-vm set user #'\n"
|
||||
exit 1
|
||||
fi
|
||||
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
|
||||
java -Xmx2G -jar /opt/${PN}/${MY_P} >/dev/null 2>&1 &
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Reference in a new issue