subst comment OSCP sections if noOSCP=1

This commit is contained in:
Asif Bacchus 2019-01-06 05:38:37 -07:00
parent 0cc7cb97a2
commit 15befc6493
2 changed files with 7 additions and 2 deletions

View File

@ -6,13 +6,13 @@
-1,
30,
44,
694,
699,
-1,
-1,
-1,
-1,
-1,
686
691
]
}
]

View File

@ -656,6 +656,11 @@ if [ "${useSSL}" -eq 1 ]; then
echo -e "updating ${warn}${configPath}/${file_mozmodern}${norm}"
sed -i -e "s%${tag_dhparam}%${DHPath}%" "${configPath}/${file_mozmodern}"
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}"
fi
fi
# process LAN IP in nginx.conf