added phpType section
This commit is contained in:
parent
a404eea23b
commit
62014eaf90
28
setup.sh
28
setup.sh
@ -479,6 +479,32 @@ if [ "${usePHP}" -eq 1 ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 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."
|
||||||
|
echo "If you have no idea what any of this means, then you're probably using the"
|
||||||
|
echo -e "default setup which is sockets${norm}\n"
|
||||||
|
while true; do
|
||||||
|
read -p "Is your PHP-FPM setup to listen via 'TCP' or 'sockets'? (default: sockets) " inputPHPType
|
||||||
|
case "${inputPHPType}" in
|
||||||
|
[Ss][Oo][Cc][Kk][Ee][Tt][Ss]*|'')
|
||||||
|
phpType='sockets'
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
[Tt][Cc][Pp]*)
|
||||||
|
phpType='tcp'
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
[Xx]*)
|
||||||
|
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}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
: <<'COMMENTSECTION'
|
: <<'COMMENTSECTION'
|
||||||
### Write configurations to template files
|
### Write configurations to template files
|
||||||
# let user know what's happening
|
# let user know what's happening
|
||||||
@ -512,9 +538,11 @@ echo "CertPath: $CertPath"
|
|||||||
echo "KeyPath: $KeyPath"
|
echo "KeyPath: $KeyPath"
|
||||||
echo "CA-Chain: $CAChainPath"
|
echo "CA-Chain: $CAChainPath"
|
||||||
echo "DHPath: $DHPath"
|
echo "DHPath: $DHPath"
|
||||||
|
echo "Generating DH Params? $generateDH"
|
||||||
echo -e "${cyan}--------------------${norm}"
|
echo -e "${cyan}--------------------${norm}"
|
||||||
echo "usePHP: $usePHP"
|
echo "usePHP: $usePHP"
|
||||||
echo "PHP Version: $phpVersion"
|
echo "PHP Version: $phpVersion"
|
||||||
|
echo "PHP listen type: $phpType"
|
||||||
echo -e "${mag}---------------------${norm}\n"
|
echo -e "${mag}---------------------${norm}\n"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user