simplify manifest

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-11-07 17:47:55 +01:00
parent a0add17cf8
commit 7a44f30574

View file

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
# #
# 2012 Steven Armstrong (steven-cdist at armstrong.cc) # 2012 Steven Armstrong (steven-cdist at armstrong.cc)
# 2012 Nico Schottelius (nico-cdist at schottelius.org)
# #
# This file is part of cdist. # This file is part of cdist.
# #
@ -21,18 +22,13 @@
os=$(cat "$__global/explorer/os") 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 case "$os" in
ubuntu|debian|archlinux) ubuntu|debian|archlinux)
__package autofs --state present __package autofs --state present
__start_on_boot autofs --state present __start_on_boot autofs --state present
;; ;;
*) *)
not_supported echo "Unsupported OS: $os" >&2
exit 1
;; ;;
esac esac