summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/odsexporterinstance.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-10-22 17:05:27 +0200
committerMartin Basti <mbasti@redhat.com>2015-10-22 18:26:59 +0200
commit2b01f71bef71229e5b10fa839a1844a6342b36bd (patch)
tree37d306cead59c83e323d900ba3a543b99bcb5214 /ipaserver/install/odsexporterinstance.py
parentf2032ca2cab3048021956707ec4ff74be69108d4 (diff)
downloadfreeipa-2b01f71bef71229e5b10fa839a1844a6342b36bd.tar.gz
freeipa-2b01f71bef71229e5b10fa839a1844a6342b36bd.tar.xz
freeipa-2b01f71bef71229e5b10fa839a1844a6342b36bd.zip
DNSSEC: store status of services only before first install
DNS installer allows to reinstall DNS and DNSSEC, so the status of services should be stored only for first time. Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipaserver/install/odsexporterinstance.py')
-rw-r--r--ipaserver/install/odsexporterinstance.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/ipaserver/install/odsexporterinstance.py b/ipaserver/install/odsexporterinstance.py
index e9ba51027..85c64aba4 100644
--- a/ipaserver/install/odsexporterinstance.py
+++ b/ipaserver/install/odsexporterinstance.py
@@ -146,9 +146,10 @@ class ODSExporterInstance(service.Service):
def __disable_signerd(self):
signerd_service = services.knownservices.ods_signerd
-
- self.backup_state("singerd_running", signerd_service.is_running())
- self.backup_state("singerd_enabled", signerd_service.is_enabled())
+ if self.get_state("singerd_running") is None:
+ self.backup_state("singerd_running", signerd_service.is_running())
+ if self.get_state("singerd_enabled") is None:
+ self.backup_state("singerd_enabled", signerd_service.is_enabled())
# disable default opendnssec signer daemon
signerd_service.stop()