fixed missing in-place sed option for noOSCP, updated default value to 0

This commit is contained in:
Asif Bacchus 2019-01-07 23:58:52 -07:00
parent e5715257aa
commit ae5ddd84ff
1 changed files with 3 additions and 2 deletions

View File

@ -62,6 +62,7 @@ configPath="./etc.${hostname}"
useSSL=0
useCertbot=0
generateDH=0
noOSCP=0
# set tags and files to update
tag_servernames="<server name(s)>"
@ -692,8 +693,8 @@ if [ "${useSSL}" -eq 1 ]; then
sed -i -e "s%${tag_cachain}%${CAChainPath}%" "${configPath}/${file_mozmodern}"
# comment OSCP lines if noOSCP=1
if [ "${noOSCP}" -eq 1 ]; then
sed 's/^ssl_stapling/#ssl_stapling/g' "${configPath}/${file_mozmodern}"
sed 's/^ssl_trusted/#ssl_trusted/' "${configPath}/${file_mozmodern}"
sed -i 's/^ssl_stapling/#ssl_stapling/g' "${configPath}/${file_mozmodern}"
sed -i 's/^ssl_trusted/#ssl_trusted/' "${configPath}/${file_mozmodern}"
fi
fi