check-php-socket-path.sh: some minor changes..

This commit is contained in:
Christoph 2023-03-17 19:30:44 +01:00
parent f0240489eb
commit 13d73c32d1

View File

@ -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