diff options
| author | Martin Basti <mbasti@redhat.com> | 2015-09-01 12:10:00 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2015-09-03 18:15:58 +0200 |
| commit | b6435f2cc6fb803869776c57c7bc9b8ebffd92fd (patch) | |
| tree | 537e167933deb5068abd60b76e05da167d093d48 | |
| parent | 0bcf0c1be9be99a0301051eef048fac9b178f735 (diff) | |
| download | freeipa-b6435f2cc6fb803869776c57c7bc9b8ebffd92fd.tar.gz freeipa-b6435f2cc6fb803869776c57c7bc9b8ebffd92fd.tar.xz freeipa-b6435f2cc6fb803869776c57c7bc9b8ebffd92fd.zip | |
DNSSEC: backup and restore opendnssec zone list file
When zone list is not restored after unninstall, this may slow down
enbaling DNSSEC signing for zones and print unwanted
errors into log after new installation.
Related to: https://fedorahosted.org/freeipa/ticket/5273
Reviewed-By: Petr Spacek <pspacek@redhat.com>
| -rw-r--r-- | ipaserver/install/opendnssecinstance.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipaserver/install/opendnssecinstance.py b/ipaserver/install/opendnssecinstance.py index 383de7768..c92818f1a 100644 --- a/ipaserver/install/opendnssecinstance.py +++ b/ipaserver/install/opendnssecinstance.py @@ -168,6 +168,9 @@ class OpenDNSSECInstance(service.Service): if not self.fstore.has_file(paths.OPENDNSSEC_KASP_FILE): self.fstore.backup_file(paths.OPENDNSSEC_KASP_FILE) + if not self.fstore.has_file(paths.OPENDNSSEC_ZONELIST_FILE): + self.fstore.backup_file(paths.OPENDNSSEC_ZONELIST_FILE) + pin_fd = open(paths.DNSSEC_SOFTHSM_PIN, "r") pin = pin_fd.read() pin_fd.close() @@ -354,7 +357,8 @@ class OpenDNSSECInstance(service.Service): paths.IPA_KASP_DB_BACKUP) for f in [paths.OPENDNSSEC_CONF_FILE, paths.OPENDNSSEC_KASP_FILE, - paths.OPENDNSSEC_KASP_DB, paths.SYSCONFIG_ODS]: + paths.OPENDNSSEC_KASP_DB, paths.SYSCONFIG_ODS, + paths.OPENDNSSEC_ZONELIST_FILE]: try: self.fstore.restore_file(f) except ValueError as error: |
