install_httpd-2.4.sh: some minor changes on script output..

This commit is contained in:
Christoph 2023-06-23 14:08:00 +02:00
parent b847843ea7
commit 7aa2b93d21

View File

@ -226,6 +226,18 @@ fatal(){
clean_up 1 clean_up 1
} }
info (){
echo ""
echo -e "\t[ \033[32m\033[1mInfo\033[m ]: $*"
echo ""
}
error (){
echo ""
echo -e "\t[ \033[31m\033[1mError\033[m ]: $*"
echo ""
}
warn (){ warn (){
echo "" echo ""
echo -e "\t[ \033[33m\033[1mWarning\033[m ]: $*" echo -e "\t[ \033[33m\033[1mWarning\033[m ]: $*"
@ -305,8 +317,17 @@ trap clean_up SIGHUP SIGINT SIGTERM
# - # -
detect_os_1 detect_os_1
#clear
# Detect OpenSSL version
#
get_openssl_version
if [[ $? -ne 0 ]] ; then
error "Cannot detect OpenSSL Version."
fi
clear
echo echo
echo -e "\033[21G\033[32mInstallation script apache webserver \033[m" echo -e "\033[21G\033[32mInstallation script apache webserver \033[m"
echo echo
@ -859,7 +880,7 @@ fi
clear #clear
echo "" echo ""
echo -e "\033[21G\033[32mStart Apache Webserver Installation with the following Parameters \033[m" echo -e "\033[21G\033[32mStart Apache Webserver Installation with the following Parameters \033[m"
echo "" echo ""
@ -2332,7 +2353,8 @@ if [[ ${OPENSSL_MAJOR_VERSION} -gt 1 ]]; then
if [[ -f "${_srcdir}/dhparam-openssl-3.0-4096.pem" ]] ; then if [[ -f "${_srcdir}/dhparam-openssl-3.0-4096.pem" ]] ; then
echo "## - Copy dhparam.pem to '$PREFIX/conf/ssl/dhparam.pem'.." >> ${_logdir}/main.log echo "## - Copy dhparam.pem to '$PREFIX/conf/ssl/dhparam.pem'.." >> ${_logdir}/main.log
echo "## -" >> ${_logdir}/main.log echo "## -" >> ${_logdir}/main.log
echo "cp \"${_srcdir}/dhparam-openssl-3.0-4096.pem\" \"$PREFIX/conf/ssl/dhparam.pem\"" echo -e "\tcp \"${_srcdir}/dhparam-openssl-3.0-4096.pem\".."
echononl "\t to \"$PREFIX/conf/ssl/dhparam.pem\""
cp "${_srcdir}/dhparam-openssl-3.0-4096.pem" "$PREFIX/conf/ssl/dhparam.pem" >> ${_logdir}/main.log cp "${_srcdir}/dhparam-openssl-3.0-4096.pem" "$PREFIX/conf/ssl/dhparam.pem" >> ${_logdir}/main.log
if [[ $? -eq 0 ]];then if [[ $? -eq 0 ]];then
echo_ok echo_ok