diff --git a/client/ipa-client-automount b/client/ipa-client-automount index f06aa7f8d..08209c849 100755 --- a/client/ipa-client-automount +++ b/client/ipa-client-automount @@ -378,6 +378,9 @@ def main(): paths.IPACLIENT_INSTALL_LOG, verbose=False, debug=options.debug, filemode='a', console_format='%(message)s') + if options.uninstall: + return uninstall(fstore, statestore) + cfg = dict( context='cli_installer', in_server=False, @@ -392,9 +395,6 @@ def main(): if os.path.exists(paths.IPA_CA_CRT): ca_cert_path = paths.IPA_CA_CRT - if options.uninstall: - return uninstall(fstore, statestore) - if statestore.has_state('autofs'): sys.exit('automount is already configured on this system.\n')