New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instance setup.py uses sysconf_dir with hardcoded path instead of initconfig_dir #3033
Comments
Comment from firstyear (@Firstyear) at 2018-10-12 01:21:21 Do we have initconfig_dir in defaults.inf? I think that's something we'll need for this patch to really work. @droideck Can you follow up with this? |
Comment from firstyear (@Firstyear) at 2018-10-12 01:21:22 Metadata Update from @Firstyear:
|
Comment from janluca at 2018-11-16 10:34:42 Is there an update to this topic? |
Comment from firstyear (@Firstyear) at 2018-11-19 22:17:04 @JanLuca Not yet sadly. :( @droideck can you comment on this? |
Comment from spichugi (@droideck) at 2018-11-20 01:01:41
Looks like we have it. I'll prepare the PR and we can tested on RHEL 7 too (shouldn't be a problem though) |
Comment from spichugi (@droideck) at 2018-11-20 01:51:21 |
Comment from spichugi (@droideck) at 2018-11-27 21:19:32 Metadata Update from @droideck:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/49974
Issue Description
In
lib389/instances/setup.py
the_install_ds
method of classSetupDs
usessysconf_dir
with hardcoded pathsysconfig
instead ofinitconfig_dir
. This breaks the script ifinitconfig_dir
is not equal to/etc/sysconfig
, e.g./etc/default
.A patch fixing the problem is attached below.
Package Version and Platform
Version: 1.4.0.18
Platfrom: Linux (Debian)
Steps to reproduce
/etc/sysconfig
existing at build time. Theninitconfig_dir
will not be/etc/sysconfig
but/etc/default
or/etc/$PACKAGE_NAME/config
(see configure.ac).dscreate
either interactive or from file.Actual results
Installation fails due to assert condition
ds_instance.exists()
in method_install_ds
of classSetupDs
, becauseds_instance.list()
returning an empty list sincesysconfig_head
searches for files in/etc/default
but the files it is looking for reside in/etc/sysconfig
Expected results
Instance installation works with files installed in directory
/etc/default
and successful assertion.The text was updated successfully, but these errors were encountered: