Message improved

This commit is contained in:
m8in
2026-04-08 20:54:47 +02:00
parent 9f786975f6
commit 7b24cbbd3c
+3 -3
View File
@@ -12,12 +12,12 @@ function setNeededHostnameOrExit() {
&& hostnamectl set-hostname "${_FQDN}" \ && hostnamectl set-hostname "${_FQDN}" \
&& return 0 && return 0
echo "FAILED: setting full qualified domain name does not contain a domain," echo "FAILED: the specified fully qualified domain name does not contain a domain,"
echo " given value was: ${_FQDN}" echo " given value was: ${_FQDN}"
exit 1 exit 1
} }
function prepareThisHost() { function printOrGenerateSSHKeysForRoot() {
git --version > /dev/null || (apt update; apt upgrade -y; apt install git) git --version > /dev/null || (apt update; apt upgrade -y; apt install git)
echo echo
@@ -66,7 +66,7 @@ function showFurtherSteps() {}
# sanitizes all parameters # sanitizes all parameters
setNeededHostnameOrExit "$(echo ${1} | sed -E 's|[^a-zA-Z0-9/:@._-]*||g')" \ setNeededHostnameOrExit "$(echo ${1} | sed -E 's|[^a-zA-Z0-9/:@._-]*||g')" \
&& prepareThisHost \ && printOrGenerateSSHKeysForRoot \
&& showFurtherSteps \ && showFurtherSteps \
&& exit 0 && exit 0