The script was only activating the service, which was failing if there was no such service.
>From 899a9c0bba6ed8df7a5a8d32bed999d5aa20ef40 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek <jhro...@redhat.com> Date: Thu, 25 Oct 2012 19:59:21 +0200 Subject: [PATCH] ipa-client-automount: Add the autofs service if it doesn't exist yet
--- ipa-client/ipa-install/ipa-client-automount | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipa-client/ipa-install/ipa-client-automount b/ipa-client/ipa-install/ipa-client-automount index d9a63e7ee5e627fbd2ed3d14dcb0e55e5ff82843..7ea69ec12be12f1e0d50abc9ef59a979aa25c7a1 100755 --- a/ipa-client/ipa-install/ipa-client-automount +++ b/ipa-client/ipa-install/ipa-client-automount @@ -154,6 +154,9 @@ def configure_autofs_sssd(fstore, statestore, autodiscover, options): except Exception, e: sys.exit(e) + if 'autofs' not in sssdconfig.list_services(): + sssdconfig.new_service('autofs') + try: sssdconfig.activate_service('autofs') except SSSDConfig.NoServiceError: -- 1.7.12.1
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel