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
1 changed files with 22 additions and 22 deletions

View File

@ -818,6 +818,7 @@ echo -e "${ok}Setup script completed${norm}"
# debug section
if [ "${1}" = "debug" ]; then
echo -e "\n${mag}---------------------${norm}"
echo "Local IP4: $IP4"
echo "Server names: ${serverNames[*]}"
@ -838,7 +839,6 @@ echo "PHP address: $phpAddr"
echo "PHP port: $phpPort"
echo "PHP socket: $phpSock"
echo -e "${mag}---------------------${norm}\n"
fi
exit 0