From e9e27f932b9b36f019801adba7fdd69926644c98 Mon Sep 17 00:00:00 2001 From: Devrim Date: Thu, 21 Dec 2023 19:59:28 +0300 Subject: [PATCH] fix(jans-linux-setup): uninstall opa (#7184) Signed-off-by: Mustafa Baser --- jans-linux-setup/jans_setup/install.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jans-linux-setup/jans_setup/install.py b/jans-linux-setup/jans_setup/install.py index a36f67f0594..b4f6d63af06 100755 --- a/jans-linux-setup/jans_setup/install.py +++ b/jans-linux-setup/jans_setup/install.py @@ -223,6 +223,9 @@ def uninstall_jans(): if os.path.exists('/opt/opendj/bin/stop-ds'): service_list.append('opendj') + if os.path.exists('/opt/opa'): + service_list.append('opa') + for service in service_list: print("Stopping", service) @@ -236,12 +239,13 @@ def uninstall_jans(): unit_fn = os.path.join('/etc/systemd/system', service + '.service') if os.path.exists(unit_fn): + print("Removing", unit_fn) os.remove(unit_fn) os.system('systemctl daemon-reload') os.system('systemctl reset-failed') - remove_list = ['/etc/certs', '/etc/jans', '/opt/amazon-corretto*', '/opt/jre', '/opt/node*', '/opt/jetty*', '/opt/jython*', '/opt/keycloak', '/opt/idp'] + remove_list = ['/etc/certs', '/etc/jans', '/opt/amazon-corretto*', '/opt/jre', '/opt/node*', '/opt/jetty*', '/opt/jython*', '/opt/keycloak', '/opt/idp', '/opt/opa'] if argsp.profile == 'jans': remove_list.append('/opt/opendj') if not argsp.keep_downloads: