Skip to content

Commit

Permalink
Please set the environment variable on fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
domwhewell-sage committed Nov 10, 2024
1 parent 5a98cf3 commit 0173b87
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bbot/modules/jadx.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ class jadx(BaseModule):
},
{
"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",
"lineinfile": {"path": "/etc/profile.d/java.sh", "line": "export JAVA_HOME=$(readlink -f /usr/bin/java | sed 's:bin/java::')", "create": True},
"become": True,
"when": "ansible_facts['os_family'] == 'RedHat'",
},
Expand Down

0 comments on commit 0173b87

Please sign in to comment.