display debug only if 'debug' passed to script
This commit is contained in:
parent
0479563690
commit
306b6cfa47
44
setup.sh
44
setup.sh
@ -818,27 +818,27 @@ echo -e "${ok}Setup script completed${norm}"
|
||||
|
||||
|
||||
# debug section
|
||||
echo -e "\n${mag}---------------------${norm}"
|
||||
echo "Local IP4: $IP4"
|
||||
echo "Server names: ${serverNames[*]}"
|
||||
echo -e "${cyan}--------------------${norm}"
|
||||
echo "Using Certbot: $useCertbot"
|
||||
echo "CertbotDomain: $CertbotDomain"
|
||||
echo -e "${cyan}--------------------${norm}"
|
||||
echo "CertPath: $CertPath"
|
||||
echo "KeyPath: $KeyPath"
|
||||
echo "noOSCP: $noOSCP"
|
||||
echo "CA-Chain: $CAChainPath"
|
||||
echo "DHPath: $DHPath"
|
||||
echo "Generating DH Params: $generateDH"
|
||||
echo -e "${cyan}--------------------${norm}"
|
||||
echo "usePHP: $usePHP"
|
||||
echo "PHP listen type: $phpType"
|
||||
echo "PHP address: $phpAddr"
|
||||
echo "PHP port: $phpPort"
|
||||
echo "PHP socket: $phpSock"
|
||||
echo -e "${mag}---------------------${norm}\n"
|
||||
|
||||
|
||||
if [ "${1}" = "debug" ]; then
|
||||
echo -e "\n${mag}---------------------${norm}"
|
||||
echo "Local IP4: $IP4"
|
||||
echo "Server names: ${serverNames[*]}"
|
||||
echo -e "${cyan}--------------------${norm}"
|
||||
echo "Using Certbot: $useCertbot"
|
||||
echo "CertbotDomain: $CertbotDomain"
|
||||
echo -e "${cyan}--------------------${norm}"
|
||||
echo "CertPath: $CertPath"
|
||||
echo "KeyPath: $KeyPath"
|
||||
echo "noOSCP: $noOSCP"
|
||||
echo "CA-Chain: $CAChainPath"
|
||||
echo "DHPath: $DHPath"
|
||||
echo "Generating DH Params: $generateDH"
|
||||
echo -e "${cyan}--------------------${norm}"
|
||||
echo "usePHP: $usePHP"
|
||||
echo "PHP listen type: $phpType"
|
||||
echo "PHP address: $phpAddr"
|
||||
echo "PHP port: $phpPort"
|
||||
echo "PHP socket: $phpSock"
|
||||
echo -e "${mag}---------------------${norm}\n"
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user