display debug only if 'debug' passed to script

This commit is contained in:
Asif Bacchus 2019-01-08 22:29:28 -07:00
parent 0479563690
commit 306b6cfa47

View File

@ -818,27 +818,27 @@ echo -e "${ok}Setup script completed${norm}"
# debug section # debug section
echo -e "\n${mag}---------------------${norm}" if [ "${1}" = "debug" ]; then
echo "Local IP4: $IP4" echo -e "\n${mag}---------------------${norm}"
echo "Server names: ${serverNames[*]}" echo "Local IP4: $IP4"
echo -e "${cyan}--------------------${norm}" echo "Server names: ${serverNames[*]}"
echo "Using Certbot: $useCertbot" echo -e "${cyan}--------------------${norm}"
echo "CertbotDomain: $CertbotDomain" echo "Using Certbot: $useCertbot"
echo -e "${cyan}--------------------${norm}" echo "CertbotDomain: $CertbotDomain"
echo "CertPath: $CertPath" echo -e "${cyan}--------------------${norm}"
echo "KeyPath: $KeyPath" echo "CertPath: $CertPath"
echo "noOSCP: $noOSCP" echo "KeyPath: $KeyPath"
echo "CA-Chain: $CAChainPath" echo "noOSCP: $noOSCP"
echo "DHPath: $DHPath" echo "CA-Chain: $CAChainPath"
echo "Generating DH Params: $generateDH" echo "DHPath: $DHPath"
echo -e "${cyan}--------------------${norm}" echo "Generating DH Params: $generateDH"
echo "usePHP: $usePHP" echo -e "${cyan}--------------------${norm}"
echo "PHP listen type: $phpType" echo "usePHP: $usePHP"
echo "PHP address: $phpAddr" echo "PHP listen type: $phpType"
echo "PHP port: $phpPort" echo "PHP address: $phpAddr"
echo "PHP socket: $phpSock" echo "PHP port: $phpPort"
echo -e "${mag}---------------------${norm}\n" echo "PHP socket: $phpSock"
echo -e "${mag}---------------------${norm}\n"
fi
exit 0 exit 0