diff options
author | Jan Cholasta <jcholast@redhat.com> | 2014-01-15 10:48:10 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-01-15 12:10:05 +0100 |
commit | e369e3dcade7d85575645bf7a67040248dfd1ccf (patch) | |
tree | b67860e13298b4eb356d92754c62abb534187e74 /ipa-client | |
parent | 7cc8c3b14b8155fe8d688ea93fd1cf375b2f7f1e (diff) | |
download | freeipa-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-x | ipa-client/ipa-install/ipa-client-automount | 2 |
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() |