Fix ipa-client-automount uninstall when fstore is empty.

https://fedorahosted.org/freeipa/ticket/4091
This commit is contained in:
Jan Cholasta 2014-01-15 10:48:10 +01:00 committed by Martin Kosek
parent 7cc8c3b14b
commit e369e3dcad

View File

@ -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()