Skip to content

Commit

Permalink
set the JAVA_HOME environment variable on fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
domwhewell-sage committed Nov 9, 2024
1 parent 6aa2a5c commit 5a98cf3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bbot/modules/jadx.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ class jadx(BaseModule):
"become": True,
"when": "ansible_facts['os_family'] == 'RedHat'",
},
{
"name": "Set JAVA_HOME (Fedora)",
"command": "echo \"export JAVA_HOME=$(readlink -f /usr/bin/java | sed 's:bin/java::')\" >> ~/.bashrc",
"become": True,
"when": "ansible_facts['os_family'] == 'RedHat'",
},
{
"name": "Use JAVA_HOME (Fedora)",
"command": "source ~/.bashrc",
"become": True,
"when": "ansible_facts['os_family'] == 'RedHat'",
},
{
"name": "Install latest JRE (Alpine)",
"package": {"name": ["openjdk11"], "state": "present"},
Expand Down

0 comments on commit 5a98cf3

Please sign in to comment.