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 <mbasti@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Stanislav Laznicka 2017-03-16 10:22:59 +01:00 committed by Tomas Krizek
parent 7324451834
commit 2612c092dd
No known key found for this signature in database
GPG Key ID: 22A2A94B5E49415A
2 changed files with 3 additions and 0 deletions

View File

@ -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,

View File

@ -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)