diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-07-18 09:33:57 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2011-07-18 09:36:43 +0200 |
commit | 50a2c45760d51e7a13888702e1a047a113bc1f5e (patch) | |
tree | 26445179b4e7a072800072f78a1cf5cf1a5740e1 /install/tools/ipa-replica-prepare | |
parent | 5f0adc3fbe5b193a57b05eed70b9f59463d9d9da (diff) | |
download | freeipa-50a2c45760d51e7a13888702e1a047a113bc1f5e.tar.gz freeipa-50a2c45760d51e7a13888702e1a047a113bc1f5e.tar.xz freeipa-50a2c45760d51e7a13888702e1a047a113bc1f5e.zip |
Check IPA configuration in install tools
Install tools may fail with unexpected error when IPA server is not
installed on a system. Improve user experience by implementing
a check to affected tools.
https://fedorahosted.org/freeipa/ticket/1327
https://fedorahosted.org/freeipa/ticket/1347
Diffstat (limited to 'install/tools/ipa-replica-prepare')
-rwxr-xr-x | install/tools/ipa-replica-prepare | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare index cb279481d..14ee53913 100755 --- a/install/tools/ipa-replica-prepare +++ b/install/tools/ipa-replica-prepare @@ -65,6 +65,7 @@ def parse_options(): default=True, help="disables pkinit setup steps") options, args = parser.parse_args() + config.init_config() if not options.ip_address: if options.reverse_zone: @@ -230,6 +231,7 @@ def get_dirman_password(): return installutils.read_password("Directory Manager (existing master)", confirm=False, validate=False) def main(): + installutils.check_server_configuration() if not check_replication_plugin(): sys.exit(1) options, args = parse_options() @@ -460,6 +462,8 @@ try: main() except SystemExit, e: sys.exit(e) +except RuntimeError, e: + sys.exit(e) except Exception, e: print "preparation of replica failed: %s" % str(e) message = str(e) |