summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-10-25 19:59:21 +0200
committerRob Crittenden <rcritten@redhat.com>2012-10-25 14:27:38 -0400
commit5e79743a0b253b10e4530ab12e9395638f49db71 (patch)
tree9b5ea7413f57d4eb54a0c506849d35ce776deccf /ipa-client/ipa-install
parentfb7575d6b77c1d85539c8e71b7fa931e758704d3 (diff)
downloadfreeipa-5e79743a0b253b10e4530ab12e9395638f49db71.tar.gz
freeipa-5e79743a0b253b10e4530ab12e9395638f49db71.tar.xz
freeipa-5e79743a0b253b10e4530ab12e9395638f49db71.zip
ipa-client-automount: Add the autofs service if it doesn't exist yet
https://fedorahosted.org/freeipa/ticket/3201
Diffstat (limited to 'ipa-client/ipa-install')
-rwxr-xr-xipa-client/ipa-install/ipa-client-automount3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-automount b/ipa-client/ipa-install/ipa-client-automount
index d9a63e7ee..7ea69ec12 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: