From 083811b4dab8ea09b17a3aaaf7889033c2779a90 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 22 Jun 2022 12:57:34 +0200 Subject: [PATCH] mod_php_install.sh: some minor changes to the script output. --- mod_php_install.sh | 48 +++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/mod_php_install.sh b/mod_php_install.sh index e0998df..7e3b332 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -3588,7 +3588,7 @@ echo "## -----" >> ${_logdir}/pecl_install.log echononl "\tUpdate Channel 'pecl.php.net' .." echo "" >> ${_logdir}/pecl_install.log echo "${PREFIX_PHP}/bin/pecl channel-update pecl.php.net" >> ${_logdir}/pecl_install.log -${PREFIX_PHP}/bin/pecl channel-update pecl.php.net > ${_logdir}/pecl_install.log 2>&1 +${PREFIX_PHP}/bin/pecl channel-update pecl.php.net >> ${_logdir}/pecl_install.log 2>&1 if [[ $? -eq 0 ]] ; then echo_ok else @@ -5066,22 +5066,24 @@ else echo "make" >> ${_logdir}/pecl_install.log echononl "\tCompile propro extension.." - make > "${_logdir}/pecl_install.log" 2>&1 + make >> "${_logdir}/pecl_install.log" 2>&1 if [ "$?" = 0 ]; then echo_ok else echo_failed - echo "" - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/nno]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Abbruch durch User" - echo "" + error "See \033[1m${_logdir}/pecl_install.log\033[m for more details" + + #echo "" + #echononl "continue anyway [yes/no]: " + #read OK + #OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + #while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + # echononl "Wrong entry! - repeat [yes/nno]: " + # read OK + #done + #[[ $OK = "yes" ]] || fatal "Abbruch durch User" + #echo "" _failed=true fi @@ -5099,16 +5101,18 @@ else else echo_failed - echo "" - echononl "continue anyway [yes/no]: " - read OK - OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" - while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do - echononl "Wrong entry! - repeat [yes/nno]: " - read OK - done - [[ $OK = "yes" ]] || fatal "Abbruch durch User" - echo "" + error "See \033[1m${_logdir}/pecl_install.log\033[m for more details" + + #echo "" + #echononl "continue anyway [yes/no]: " + #read OK + #OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')" + #while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do + # echononl "Wrong entry! - repeat [yes/nno]: " + # read OK + #done + #[[ $OK = "yes" ]] || fatal "Abbruch durch User" + #echo "" _failed=true fi