From 13eebe4bdcbc059eb40b3e33b9bfb4a2830e8a0b Mon Sep 17 00:00:00 2001 From: Devrim Date: Tue, 15 Nov 2022 18:59:24 +0300 Subject: [PATCH] fix: jans-linux-setup remove opendj sysv script (#2998) --- .../jans_setup/setup_app/installers/opendj.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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):