Skip to content

Commit

Permalink
fix: jans-linux-setup remove opendj sysv script (#2998)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar authored Nov 15, 2022
1 parent 892b87a commit 13eebe4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions jans-linux-setup/jans_setup/setup_app/installers/opendj.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,8 @@ def prepare_opendj_schema(self):
self.start()

def setup_opendj_service(self):
if not base.snap:
self.copyFile(self.unit_file, Config.unit_files_path)
init_script_fn = '/etc/init.d/opendj'
if os.path.exists(init_script_fn):
self.removeFile(init_script_fn)
self.run([self.ldapDsCreateRcCommand, '--outputFile', init_script_fn, '--userName', Config.ldap_user])
self.reload_daemon()

self.copyFile(self.unit_file, Config.unit_files_path)
self.reload_daemon()

def installed(self):
if os.path.exists(self.openDjSchemaFolder):
Expand Down

0 comments on commit 13eebe4

Please sign in to comment.