mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-24 14:17:41 -05:00
replicainstall: Add check for domain if server is specified
Avoids failing in the later stages during the ipa-client-install command. Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
1 parent
e9baafb08f
commit
c3c8651ac1
1 file changed
+6
@@ -1461,6 +1461,12 @@ class Replica(BaseServer):
|
||||
raise RuntimeError("--dirsrv-cert-file and --http-cert-file "
|
||||
"are required if any PKCS#12 options are "
|
||||
"used")
|
||||
|
||||
if self.server and not self.domain_name:
|
||||
raise RuntimeError("The --server option cannot be used "
|
||||
"without providing domain via the --domain "
|
||||
"option")
|
||||
|
||||
else:
|
||||
if not ipautil.file_exists(self.replica_file):
|
||||
raise RuntimeError("Replica file %s does not exist"
|
||||
|
||||
Reference in new issue
Block a user