From 13d73c32d1f926590ea6a28910550d0fbf6e599c Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 17 Mar 2023 19:30:44 +0100 Subject: [PATCH] check-php-socket-path.sh: some minor changes.. --- check-php-socket-path.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/check-php-socket-path.sh b/check-php-socket-path.sh index ba761a7..7a2034d 100755 --- a/check-php-socket-path.sh +++ b/check-php-socket-path.sh @@ -219,6 +219,8 @@ fi # - Headline # ---------- +clear + if $terminal ; then echo "" echo -e "\033[1m----------\033[m" @@ -271,8 +273,6 @@ for dir in $_php_installation_dirs ; do done _major_php_verisons=`echo "$__major_php_verisons" | sed 's/^ *//'` -clear - __vhost_base_dir=${apache_base_dir}/conf/vhosts echo "" echo "" @@ -387,12 +387,12 @@ for __version in ${_major_php_verisons} ; do perl -i -n -p -e "s#(.+proxy:unix:).+${__version}-fpm.www.sock(\|.*)#\1${_socket_path}/php-${__version}-fpm.www.sock\2#" $_file > $log_file 2>&1 if [[ $? -eq 0 ]]; then echo_ok - _changed=true - _changed_version=true else echo_failed error "$(cat $log_file)" fi + _changed=true + _changed_version=true fi fi