hide phpType is not using PHP
This commit is contained in:
parent
7ab4e8bc8c
commit
f22c7f4c80
48
setup.sh
48
setup.sh
@ -480,29 +480,31 @@ if [ "${usePHP}" -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# get PHP-FPM TCP or Sockets configuration
|
# get PHP-FPM TCP or Sockets configuration
|
||||||
echo -e "\n${mag}PHP-FPM can be set up to respond to requests via TCP or via UNIX sockets."
|
if [ "${usePHP}" -eq 1 ]; then
|
||||||
echo "If you have no idea what any of this means, then you're probably using the"
|
echo -e "\n${mag}PHP-FPM can be set up to respond to requests via TCP or via UNIX sockets."
|
||||||
echo -e "default setup which is sockets${norm}\n"
|
echo "If you have no idea what any of this means, then you're probably using the"
|
||||||
while true; do
|
echo -e "default setup which is sockets${norm}\n"
|
||||||
read -p "Is your PHP-FPM setup to listen via 'TCP' or 'sockets'? (default: sockets) " inputPHPType
|
while true; do
|
||||||
case "${inputPHPType}" in
|
read -p "Is your PHP-FPM setup to listen via 'TCP' or 'sockets'? (default: sockets) " inputPHPType
|
||||||
[Ss][Oo][Cc][Kk][Ee][Tt][Ss]*|'')
|
case "${inputPHPType}" in
|
||||||
phpType='sockets'
|
[Ss][Oo][Cc][Kk][Ee][Tt][Ss]*|'')
|
||||||
break
|
phpType='sockets'
|
||||||
;;
|
break
|
||||||
[Tt][Cc][Pp]*)
|
;;
|
||||||
phpType='tcp'
|
[Tt][Cc][Pp]*)
|
||||||
break
|
phpType='tcp'
|
||||||
;;
|
break
|
||||||
[Xx]*)
|
;;
|
||||||
echo -e "\n${cyan}---exiting---\n${norm}"
|
[Xx]*)
|
||||||
exit 1
|
echo -e "\n${cyan}---exiting---\n${norm}"
|
||||||
;;
|
exit 1
|
||||||
*)
|
;;
|
||||||
echo -e "\n${err}Please enter either 'tcp' or 'sockets' or 'X' to exit script${norm}"
|
*)
|
||||||
;;
|
echo -e "\n${err}Please enter either 'tcp' or 'sockets' or 'X' to exit script${norm}"
|
||||||
esac
|
;;
|
||||||
done
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
: <<'COMMENTSECTION'
|
: <<'COMMENTSECTION'
|
||||||
|
Loading…
Reference in New Issue
Block a user