fixed missing end of if statement in generateDH section

This commit is contained in:
Asif Bacchus 2019-01-05 18:48:43 -07:00
parent ccca60b927
commit bdc5aa73ca
1 changed files with 3 additions and 4 deletions

View File

@ -635,12 +635,12 @@ fi
# notify user file updates are completed
echo -e "\n${mag}---------------------${norm}"
echo -e "${cyan}...Template files updated${norm}"
echo -e "\n${mag}---------------------${norm}"
# notify user and generate DHParms if necessary, otherwise end reporting section
if [ "${generateDH}" -eq 1 ]; then
echo -e "\n${mag}---------------------${norm}"
echo -e "${cyan}Generating DH-Parameters file... this may take a while${norm}"
# delete existing (likely default) dhparam.pem
rm -f /etc/ssl/certs/dhparam.pem
@ -653,8 +653,7 @@ if [ "${generateDH}" -eq 1 ]; then
echo -e "${err}-- error generating dhparam.pem --"
echo -e "you should manaully generate this file${norm}"
fi
fi
@ -681,4 +680,4 @@ echo -e "${mag}---------------------${norm}\n"
exit 0
exit 0