diff --git a/jans-linux-setup/jans_setup/setup_app/installers/opendj.py b/jans-linux-setup/jans_setup/setup_app/installers/opendj.py index 2746adb066c..09c7bf0e814 100644 --- a/jans-linux-setup/jans_setup/setup_app/installers/opendj.py +++ b/jans-linux-setup/jans_setup/setup_app/installers/opendj.py @@ -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):