URL: https://github.com/freeipa/freeipa/pull/607 Author: stlaz Title: #607: Backup ipa-specific httpd unit-file Action: synchronized
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/607/head:pr607 git checkout pr607
From 6c29861853a8857c3b6b3e1d6a85778e9ed13097 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka <slazn...@redhat.com> Date: Thu, 16 Mar 2017 10:22:59 +0100 Subject: [PATCH] Backup ipa-specific httpd unit-file On backup-restore, the ipa unit file for httpd was not backed up. This file however contains setting for httpd to communicate with gssproxy so not backing it up will result in httpd not knowing how to get credentials. https://pagure.io/freeipa/issue/6748 --- ipaserver/install/ipa_backup.py | 1 + ipaserver/install/ipa_restore.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ipaserver/install/ipa_backup.py b/ipaserver/install/ipa_backup.py index 07c50c8..56583c0 100644 --- a/ipaserver/install/ipa_backup.py +++ b/ipaserver/install/ipa_backup.py @@ -166,6 +166,7 @@ class Backup(admintool.AdminTool): paths.KDC_CERT, paths.KDC_KEY, paths.SYSTEMD_IPA_SERVICE, + paths.SYSTEMD_SYSTEM_HTTPD_IPA_CONF, paths.SYSTEMD_SSSD_SERVICE, paths.SYSTEMD_CERTMONGER_SERVICE, paths.SYSTEMD_PKI_TOMCAT_SERVICE, diff --git a/ipaserver/install/ipa_restore.py b/ipaserver/install/ipa_restore.py index d798654..2552bbd 100644 --- a/ipaserver/install/ipa_restore.py +++ b/ipaserver/install/ipa_restore.py @@ -414,6 +414,8 @@ def run(self): sssd = services.service('sssd', api) sssd.restart() http.remove_httpd_ccaches() + # have the daemons pick up their restored configs + run([paths.SYSTEMCTL, "--system", "daemon-reload"]) finally: try: os.chdir(cwd)
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code