fixed missing in-place sed option for noOSCP, updated default value to 0
This commit is contained in:
parent
e5715257aa
commit
ae5ddd84ff
5
setup.sh
5
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="<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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user