From 2ba969da07f1120bc392603ec7bf4bd2a9f967a4 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 14 Jan 2019 16:19:58 +0100 Subject: [PATCH] Add workaround for lib389 HOME bug lib389 <= 1.4.0.20 needs HOME env var. Temporary set env var until lib389 is fixed. See: https://pagure.io/389-ds-base/issue/50152 Signed-off-by: Christian Heimes Reviewed-By: Alexander Bokovoy --- ipaserver/install/dsinstance.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index a64b6b6d2..d2b5cdda4 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -526,6 +526,10 @@ class DsInstance(service.Service): self.backup_state("serverid", self.serverid) self.fstore.backup_file(paths.SYSCONFIG_DIRSRV) + # workaround for https://pagure.io/389-ds-base/issue/50152 + if 'HOME' not in os.environ: + os.environ['HOME'] = api.env.home + # The new installer is api driven. We can pass it a log function # and it will use it. Because of this, we can pass verbose true, # and allow our logger to control the display based on level.