diff options
Diffstat (limited to 'install/tools/ipa-replica-install')
-rwxr-xr-x | install/tools/ipa-replica-install | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install index 590fd645b..17f5cbc37 100755 --- a/install/tools/ipa-replica-install +++ b/install/tools/ipa-replica-install @@ -343,6 +343,11 @@ def main(): if not ipautil.file_exists(filename): sys.exit("Replica file %s does not exist" % filename) + client_fstore = sysrestore.FileStore('/var/lib/ipa-client/sysrestore') + if client_fstore.has_files(): + sys.exit("IPA client is already configured on this system.\n" + + "Please uninstall it first before configuring the replica.") + global sstore sstore = sysrestore.StateFile('/var/lib/ipa/sysrestore') |