From de96cf4a48302d7e03abded73876a3a7d8c9a1f9 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 22 Jun 2020 16:04:35 +0200 Subject: [PATCH] Adding and using snippets/tpl.220.locales-centos8.sh --- kickstart/template-centos8.ks | 5 +++++ snippets/tpl.220.locales-centos8.sh | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 snippets/tpl.220.locales-centos8.sh diff --git a/kickstart/template-centos8.ks b/kickstart/template-centos8.ks index f515d23..bddfbd6 100644 --- a/kickstart/template-centos8.ks +++ b/kickstart/template-centos8.ks @@ -207,6 +207,11 @@ echo echo "Using snippet $bashrc_snippet" $SNIPPET($bashrc_snippet) +#set $locales_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.220.locales-centos8.sh" +echo +echo "Using snippet $locales_snippet" +$SNIPPET($locales_snippet) + #set $pkgs_snippet = "per_status/" + $SYSTEM_STATUS + "/tpl.250.pkgs-centos8.sh" echo echo "Using snippet $pkgs_snippet" diff --git a/snippets/tpl.220.locales-centos8.sh b/snippets/tpl.220.locales-centos8.sh new file mode 100644 index 0000000..0e36f85 --- /dev/null +++ b/snippets/tpl.220.locales-centos8.sh @@ -0,0 +1,24 @@ +## !/bin/bash +#raw + +#----------------------------------------------------------- +set_locales_centos8() { + + echo + echo "${HASH_LINE}" + echo "Calling set_locales_centos8() ..." + echo + + log "Installing german locales (langpacks-de) ..." + if yum install -y "langpacks-de" ; then + : + else + echo "[$(date)]: Could not install german locales (langpacks-de)" | tee -a "${ERROR_POINTER}" + fi + +} + +set_locales_centos8 + +#end raw +## vim: ts=4 et list -- 2.39.5