From 0173b873c799236b5ada407b20933c69f49a2f1a Mon Sep 17 00:00:00 2001 From: Dom Whewell Date: Sun, 10 Nov 2024 10:45:12 +0000 Subject: [PATCH] Please set the environment variable on fedora --- bbot/modules/jadx.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bbot/modules/jadx.py b/bbot/modules/jadx.py index 835d22343..157c71b91 100644 --- a/bbot/modules/jadx.py +++ b/bbot/modules/jadx.py @@ -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'", },