summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorStanislav Laznicka <slaznick@redhat.com>2016-11-08 13:05:51 +0100
committerJan Cholasta <jcholast@redhat.com>2016-11-11 12:17:25 +0100
commitbde1d82ebe32be339c30c85048fd18e1ce99867d (patch)
tree109179d72056181d0e9582f58925007c3efd1fb9 /install/tools
parent87c3c1abecdfb8b5eb227239eeacfbee386a7ed7 (diff)
downloadfreeipa-bde1d82ebe32be339c30c85048fd18e1ce99867d.tar.gz
freeipa-bde1d82ebe32be339c30c85048fd18e1ce99867d.tar.xz
freeipa-bde1d82ebe32be339c30c85048fd18e1ce99867d.zip
Move httpd restart to DNS installation
Web service needs restarting after bindinstance is created to pick up changes done to /etc/resolv.conf. This change should be included anytime DNS is installed therefore it makes sense to move it to the common code. https://fedorahosted.org/freeipa/ticket/6392 Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-dns-install11
1 files changed, 1 insertions, 10 deletions
diff --git a/install/tools/ipa-dns-install b/install/tools/ipa-dns-install
index 99a139951..9c63e128e 100755
--- a/install/tools/ipa-dns-install
+++ b/install/tools/ipa-dns-install
@@ -26,14 +26,12 @@ import sys
from optparse import SUPPRESS_HELP
-from ipaserver.install import bindinstance, httpinstance
+from ipaserver.install import bindinstance
from ipaserver.install import installutils
-from ipaserver.install import service
from ipapython import version
from ipalib import api
from ipaplatform.paths import paths
from ipapython import ipautil
-from ipapython import sysrestore
from ipapython.config import IPAOptionParser
from ipapython.ipa_log_manager import standard_logging_setup, root_logger
@@ -147,13 +145,6 @@ def main():
dns_installer.install_check(True, api, False, options, hostname=api.env.host)
dns_installer.install(True, False, options)
- # Restart http instance to make sure that python-dns has the right resolver
- # https://bugzilla.redhat.com/show_bug.cgi?id=800368
- fstore = sysrestore.FileStore(paths.SYSRESTORE)
- http = httpinstance.HTTPInstance(fstore)
- service.print_msg("Restarting the web server")
- http.restart()
-
# execute ipactl to refresh services status
ipautil.run(['ipactl', 'start', '--ignore-service-failures'],
raiseonerr=False)