summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-prepare
diff options
context:
space:
mode:
Diffstat (limited to 'install/tools/ipa-replica-prepare')
-rwxr-xr-xinstall/tools/ipa-replica-prepare4
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)