summaryrefslogtreecommitdiffstats
path: root/ipa-client
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2014-01-15 10:48:10 +0100
committerMartin Kosek <mkosek@redhat.com>2014-01-15 12:10:05 +0100
commite369e3dcade7d85575645bf7a67040248dfd1ccf (patch)
treeb67860e13298b4eb356d92754c62abb534187e74 /ipa-client
parent7cc8c3b14b8155fe8d688ea93fd1cf375b2f7f1e (diff)
downloadfreeipa-e369e3dcade7d85575645bf7a67040248dfd1ccf.tar.gz
freeipa-e369e3dcade7d85575645bf7a67040248dfd1ccf.tar.xz
freeipa-e369e3dcade7d85575645bf7a67040248dfd1ccf.zip
Fix ipa-client-automount uninstall when fstore is empty.
https://fedorahosted.org/freeipa/ticket/4091
Diffstat (limited to 'ipa-client')
-rwxr-xr-xipa-client/ipa-install/ipa-client-automount2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-automount b/ipa-client/ipa-install/ipa-client-automount
index a431b98e9..6cf79a7b6 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()