[type/__localedef] Only install dependencies in manifest. OS checking moved to gencode-remote

This commit is contained in:
Dennis Camera 2020-11-08 14:02:08 +01:00
parent cc29e54b85
commit f44888f192

View file

@ -2,6 +2,7 @@
#
# 2013-2019 Nico Schottelius (nico-cdist at schottelius.org)
# 2015 David Hürlimann (david at ungleich.ch)
# 2020 Dennis Camera (dennis.camera at ssrq-sds-fds.ch)
#
# This file is part of cdist.
#
@ -18,24 +19,12 @@
# You should have received a copy of the GNU General Public License
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
#
#
# Install required packages
# Install required packages.
#
os=$(cat "$__global/explorer/os")
case "$os" in
debian|devuan)
# Debian needs a seperate package
__package locales --state present
;;
archlinux|suse|ubuntu|scientific|centos|alpine)
:
;;
*)
echo "Sorry, do not know how to handle os: $os" >&2
echo "Please edit the type ${__type##*/} to fix this." >&2
exit 1
case $(cat "${__global:?}/explorer/os")
in
(debian|devuan)
__package_apt locales --state present
;;
esac