[Pkg-freeipa-devel] Bug#913821: python3-lib389: dscreate searches files in hard-coded paths
Jan Luca Naumann
j.naumann at fu-berlin.de
Thu Nov 15 16:29:41 GMT 2018
Package: python3-lib389
Version: 1.4.0.18-1
Severity: important
Tags: upstream patch
As described in the upstream bug [1] dscreate searches files in hard-coded paths
and tries to use /etc/sysconfig instead of /etc/default.
A patch to fix this behaviour is attached.
[1] https://pagure.io/389-ds-base/issue/49974
-------------- next part --------------
--- a/src/lib389/lib389/instance/setup.py
+++ b/src/lib389/lib389/instance/setup.py
@@ -593,10 +593,10 @@
for line in template_init.readlines():
initconfig += line.replace('{{', '{', 1).replace('}}', '}', 1).replace('-', '_')
try:
- os.makedirs("%s/sysconfig" % slapd['sysconf_dir'], mode=0o775)
+ os.makedirs("%s" % slapd['initconfig_dir'], mode=0o775)
except FileExistsError:
pass
- with open("%s/sysconfig/dirsrv-%s" % (slapd['sysconf_dir'], slapd['instance_name']), 'w') as f:
+ with open("%s/dirsrv-%s" % (slapd['initconfig_dir'], slapd['instance_name']), 'w') as f:
f.write(initconfig.format(
SERVER_DIR=slapd['lib_dir'],
SERVERBIN_DIR=slapd['sbin_dir'],
More information about the Pkg-freeipa-devel
mailing list