]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding and using snippets/tpl.220.locales-centos8.sh
authorFrank Brehm <frank.brehm@pixelpark.com>
Mon, 22 Jun 2020 14:04:35 +0000 (16:04 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Mon, 22 Jun 2020 14:04:35 +0000 (16:04 +0200)
kickstart/template-centos8.ks
snippets/tpl.220.locales-centos8.sh [new file with mode: 0644]

index f515d2393f6053dc4f76a74f7f60f7d0e18d461f..bddfbd683e2dd99ab1185866295b46397127abe3 100644 (file)
@@ -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 (file)
index 0000000..0e36f85
--- /dev/null
@@ -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