From 15befc64936ed2f340de95f782356f40466731c8 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 6 Jan 2019 05:38:37 -0700 Subject: [PATCH] subst comment OSCP sections if noOSCP=1 --- .vscode/numbered-bookmarks.json | 4 ++-- setup.sh | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.vscode/numbered-bookmarks.json b/.vscode/numbered-bookmarks.json index 6c14f60..06e7121 100644 --- a/.vscode/numbered-bookmarks.json +++ b/.vscode/numbered-bookmarks.json @@ -6,13 +6,13 @@ -1, 30, 44, - 694, + 699, -1, -1, -1, -1, -1, - 686 + 691 ] } ] diff --git a/setup.sh b/setup.sh index 56213ec..ecc723e 100755 --- a/setup.sh +++ b/setup.sh @@ -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