From 7a44f3057412b2a600c91b7feabe59f32a95571f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 7 Nov 2012 17:47:55 +0100 Subject: [PATCH] simplify manifest Signed-off-by: Nico Schottelius --- cdist/conf/type/__autofs/manifest | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/cdist/conf/type/__autofs/manifest b/cdist/conf/type/__autofs/manifest index 31844415..4a726c0a 100755 --- a/cdist/conf/type/__autofs/manifest +++ b/cdist/conf/type/__autofs/manifest @@ -1,6 +1,7 @@ #!/bin/sh # # 2012 Steven Armstrong (steven-cdist at armstrong.cc) +# 2012 Nico Schottelius (nico-cdist at schottelius.org) # # This file is part of cdist. # @@ -21,18 +22,13 @@ os=$(cat "$__global/explorer/os") -not_supported() { - echo "Your operating system ($os) is currently not supported by this type (${__type##*/})." >&2 - echo "Please contribute an implementation for it if you can." >&2 - exit 1 -} - case "$os" in - ubuntu|debian|archlinux) - __package autofs --state present - __start_on_boot autofs --state present - ;; - *) - not_supported - ;; + ubuntu|debian|archlinux) + __package autofs --state present + __start_on_boot autofs --state present + ;; + *) + echo "Unsupported OS: $os" >&2 + exit 1 + ;; esac