From: Frank Brehm Date: Mon, 22 Jun 2020 14:04:35 +0000 (+0200) Subject: Adding and using snippets/tpl.220.locales-centos8.sh X-Git-Tag: 2.1.2^2~9^2~31^2~13 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=de96cf4a48302d7e03abded73876a3a7d8c9a1f9;p=pixelpark%2Fcreate-vmware-tpl.git Adding and using 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