install-keycloak.sh: Modify script output: add explanatory comments.

This commit is contained in:
2026-04-05 01:24:21 +02:00
parent 27c82a9634
commit 7325ba80f5

View File

@@ -800,6 +800,8 @@ if $nginx_installed ; then
else
echo -e "\033[85G[ \033[1;31mNOT installed\033[m ]"
echo ""
echo -e " \033[33mYou might want to install \033[1mnginx\033[m\033[33m and continue\033[m"
echo ""
echononl "\033[1mcontinue anyway\033[m [yes/no]: "
read OK
@@ -827,6 +829,8 @@ else
echo -e "\033[85G[ \033[1;31mNOT installed\033[m ]"
echo ""
echo ""
echo -e " \033[33mYou might want to install \033[1mdefault-jdk\033[m\033[33m and continue\033[m"
echononl "\033[1mcontinue anyway\033[m [yes/no]: "
read OK
while [[ "${OK,,}" != "yes" ]] && [[ "${OK,,}" != "no" ]] ; do
@@ -1542,7 +1546,33 @@ blank_line
_certs_installed=false
echononl "Run script 'check_cert_for_keycloak.sh'.."
if [[ -x "/root/bin/monitoring/check_cert_for_keycloak.sh" ]] ; then
if [[ ! -f "/root/bin/monitoring/conf/check_cert_for_keycloak.conf" ]] ; then
echo_skipped
cat <<EOF
Create configuration file '/root/bin/monitoring/conf/(check_cert_for_keycloak.conf'
and set at least the 'service_domain', parameter, for example:
service_domain="${FQHN_HOSTNAME}"
Once you have done that, continue.
EOF
echo ""
echononl "\033[1mcontinue?\033[m [yes/no]: "
read OK
while [[ "${OK,,}" != "yes" ]] && [[ "${OK,,}" != "no" ]] ; do
echononl "Wrong entry! - repeat [yes/nno]: "
read OK
done
[[ $OK = "yes" ]] || fatal "Abbruch durch User"
fi
/root/bin/monitoring/check_cert_for_keycloak.sh > "$log_file" 2>&1
if [[ $? -ne 0 ]]; then
echo_failed
@@ -1551,10 +1581,15 @@ if [[ -x "/root/bin/monitoring/check_cert_for_keycloak.sh" ]] ; then
echo_ok
_certs_installed=true
fi
else
warn "Certificate/Key for ${FQHN_HOSTNAME} cannot be provided."
fi
echononl "Add a cronjob for checking cert.."
if [[ -f "$crontab_backup_file" ]]; then
if ! grep -iq -E "/root/bin/monitoring/check_cert_for_keycloak.sh" "$crontab_backup_file" > /dev/null 2>&1; then