Skip to content

Commit

Permalink
fix(jans-linux-setup): uninstall opa (#7184)
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Baser <mbaser@mail.com>
  • Loading branch information
devrimyatar committed Dec 21, 2023
1 parent e086447 commit e9e27f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jans-linux-setup/jans_setup/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit e9e27f9

Please sign in to comment.