Hi,

the attached patch fixes <https://fedorahosted.org/freeipa/ticket/3331>.

Honza

--
Jan Cholasta
>From 2fcea50d35e7c184e38c7fbf10ba1373e42b37d8 Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@redhat.com>
Date: Wed, 15 Jan 2014 10:43:21 +0100
Subject: [PATCH] Fix ipa-client-automount uninstall when fstore is empty.

https://fedorahosted.org/freeipa/ticket/3331
---
 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 a431b98..6cf79a7 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

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to