From 2612c092dd797c9c8f772c785aae1f152f06847d Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Mar 23 2017 09:12:44 +0000 Subject: 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 Reviewed-By: Martin Basti Reviewed-By: Christian Heimes --- 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 @@ class Restore(admintool.AdminTool): 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)