|
|
403b09 |
From 7422ad189f90d596fcda93da97ae1cd152df4df3 Mon Sep 17 00:00:00 2001
|
|
|
403b09 |
From: Martin Basti <mbasti@redhat.com>
|
|
|
403b09 |
Date: Fri, 5 Aug 2016 17:35:49 +0200
|
|
|
403b09 |
Subject: [PATCH] ipa-backup: backup /etc/tmpfiles.d/dirsrv-<instance>.conf
|
|
|
403b09 |
|
|
|
403b09 |
This file allows daemon tmpfiles.d to re-create the dirs in volatile
|
|
|
403b09 |
directories like /var/run or /var/lock. Without this file Dirsrv will
|
|
|
403b09 |
not start.
|
|
|
403b09 |
|
|
|
403b09 |
https://fedorahosted.org/freeipa/ticket/6165
|
|
|
403b09 |
|
|
|
403b09 |
Reviewed-By: Petr Spacek <pspacek@redhat.com>
|
|
|
403b09 |
---
|
|
|
403b09 |
ipaplatform/base/paths.py | 1 +
|
|
|
403b09 |
ipaserver/install/ipa_backup.py | 9 ++++++---
|
|
|
403b09 |
2 files changed, 7 insertions(+), 3 deletions(-)
|
|
|
403b09 |
|
|
|
403b09 |
diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py
|
|
|
403b09 |
index 9c8eaf951df89d373796be3f354bd3c51a329902..5ffe689950792a40c179533c8baf2794c2388696 100644
|
|
|
403b09 |
--- a/ipaplatform/base/paths.py
|
|
|
403b09 |
+++ b/ipaplatform/base/paths.py
|
|
|
403b09 |
@@ -132,6 +132,7 @@ class BasePathNamespace(object):
|
|
|
403b09 |
SYSTEMD_IPA_SERVICE = "/etc/systemd/system/multi-user.target.wants/ipa.service"
|
|
|
403b09 |
SYSTEMD_SSSD_SERVICE = "/etc/systemd/system/multi-user.target.wants/sssd.service"
|
|
|
403b09 |
SYSTEMD_PKI_TOMCAT_SERVICE = "/etc/systemd/system/pki-tomcatd.target.wants/pki-tomcatd@pki-tomcat.service"
|
|
|
403b09 |
+ ETC_TMPFILESD_DIRSRV = "/etc/tmpfiles.d/dirsrv-%s.conf"
|
|
|
403b09 |
DNSSEC_TRUSTED_KEY = "/etc/trusted-key.key"
|
|
|
403b09 |
HOME_DIR = "/home"
|
|
|
403b09 |
PROC_FIPS_ENABLED = "/proc/sys/crypto/fips_enabled"
|
|
|
403b09 |
diff --git a/ipaserver/install/ipa_backup.py b/ipaserver/install/ipa_backup.py
|
|
|
403b09 |
index 18a60ecd13c7e7f5381b61ec70ea308a1931b7ec..9b09f4293028c3e560337ba082164b528cf76d80 100644
|
|
|
403b09 |
--- a/ipaserver/install/ipa_backup.py
|
|
|
403b09 |
+++ b/ipaserver/install/ipa_backup.py
|
|
|
403b09 |
@@ -337,9 +337,12 @@ class Backup(admintool.AdminTool):
|
|
|
403b09 |
if os.path.exists(dir):
|
|
|
403b09 |
self.dirs.append(dir)
|
|
|
403b09 |
|
|
|
403b09 |
- file = paths.SYSCONFIG_DIRSRV_INSTANCE % serverid
|
|
|
403b09 |
- if os.path.exists(file):
|
|
|
403b09 |
- self.files.append(file)
|
|
|
403b09 |
+ for file in (
|
|
|
403b09 |
+ paths.SYSCONFIG_DIRSRV_INSTANCE % serverid,
|
|
|
403b09 |
+ paths.ETC_TMPFILESD_DIRSRV % serverid,
|
|
|
403b09 |
+ ):
|
|
|
403b09 |
+ if os.path.exists(file):
|
|
|
403b09 |
+ self.files.append(file)
|
|
|
403b09 |
|
|
|
403b09 |
self.logs.append(paths.VAR_LOG_DIRSRV_INSTANCE_TEMPLATE % serverid)
|
|
|
403b09 |
|
|
|
403b09 |
--
|
|
|
403b09 |
2.7.4
|
|
|
403b09 |
|