diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-11-13 16:57:51 +0100 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2009-12-02 13:07:07 +0100 |
commit | d147eafb075ae4207f95cdbea78697178b4bb68e (patch) | |
tree | c1c1272b601cce29e31c4916fb656d3e0bb52562 /ipaserver/install | |
parent | 377907e2211875250e6af7fcb65d0548702c3c3d (diff) | |
download | freeipa-d147eafb075ae4207f95cdbea78697178b4bb68e.tar.gz freeipa-d147eafb075ae4207f95cdbea78697178b4bb68e.tar.xz freeipa-d147eafb075ae4207f95cdbea78697178b4bb68e.zip |
Ask the user before overwriting /etc/named.conf
Diffstat (limited to 'ipaserver/install')
-rw-r--r-- | ipaserver/install/bindinstance.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index 2a922a3db..e2edcd392 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -30,17 +30,25 @@ from ipapython import sysrestore from ipapython import ipautil from ipalib import api, util -def check_inst(): +def check_inst(unattended): # So far this file is always present in both RHEL5 and Fedora if all the necessary # bind packages are installed (RHEL5 requires also the pkg: caching-nameserver) if not os.path.exists('/etc/named.rfc1912.zones'): + print "BIND was not found on this system" + print "Please install the bind package and start the installation again" return False # Also check for the LDAP BIND plug-in if not os.path.exists('/usr/lib/bind/ldap.so') and \ not os.path.exists('/usr/lib64/bind/ldap.so'): + print "The BIND LDAP plug-in was not found on this system" + print "Please install the bind-dyndb-ldap package and start the installation again" return False + if not unattended and os.path.exists('/etc/named.conf'): + msg = "Existing BIND configuration detected, overwrite?" + return ipautil.user_input(msg, False) + return True class BindInstance(service.Service): |