From ae5ddd84ff7d1d5ccbdc2755c856b143443b0c80 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 7 Jan 2019 23:58:52 -0700 Subject: [PATCH] fixed missing in-place sed option for noOSCP, updated default value to 0 --- setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 2839255..9d9fa7d 100755 --- a/setup.sh +++ b/setup.sh @@ -62,6 +62,7 @@ configPath="./etc.${hostname}" useSSL=0 useCertbot=0 generateDH=0 +noOSCP=0 # set tags and files to update tag_servernames="" @@ -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