Blob Blame History Raw
From 8782235cff60229051c82880131fb11c82659a0b Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jcholast@redhat.com>
Date: Wed, 15 Jan 2014 10:48:10 +0100
Subject: [PATCH 22/25] Fix ipa-client-automount uninstall when fstore is
 empty.

https://fedorahosted.org/freeipa/ticket/4091
---
 ipa-client/ipa-install/ipa-client-automount | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipa-client/ipa-install/ipa-client-automount b/ipa-client/ipa-install/ipa-client-automount
index 2ce31dcb9605941fa8734caad7ed5ba9b5ce1e01..62531bfe1d923b1705aed1187da6766b54c90a0c 100755
--- a/ipa-client/ipa-install/ipa-client-automount
+++ b/ipa-client/ipa-install/ipa-client-automount
@@ -360,7 +360,7 @@ def main():
 
     fstore = sysrestore.FileStore('/var/lib/ipa-client/sysrestore')
     statestore = sysrestore.StateFile('/var/lib/ipa-client/sysrestore')
-    if not fstore.has_files():
+    if not fstore.has_files() and not os.path.exists('/etc/ipa/default.conf'):
         sys.exit('IPA client is not configured on this system.\n')
 
     options, args = parse_options()
-- 
1.8.4.2