Skip to content

Commit 13eebe4

Browse files
authored
fix: jans-linux-setup remove opendj sysv script (#2998)
1 parent 892b87a commit 13eebe4

File tree

1 file changed

+2
-8
lines changed
  • jans-linux-setup/jans_setup/setup_app/installers

1 file changed

+2
-8
lines changed

jans-linux-setup/jans_setup/setup_app/installers/opendj.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,8 @@ def prepare_opendj_schema(self):
344344
self.start()
345345

346346
def setup_opendj_service(self):
347-
if not base.snap:
348-
self.copyFile(self.unit_file, Config.unit_files_path)
349-
init_script_fn = '/etc/init.d/opendj'
350-
if os.path.exists(init_script_fn):
351-
self.removeFile(init_script_fn)
352-
self.run([self.ldapDsCreateRcCommand, '--outputFile', init_script_fn, '--userName', Config.ldap_user])
353-
self.reload_daemon()
354-
347+
self.copyFile(self.unit_file, Config.unit_files_path)
348+
self.reload_daemon()
355349

356350
def installed(self):
357351
if os.path.exists(self.openDjSchemaFolder):

0 commit comments

Comments
 (0)