subst comment OSCP sections if noOSCP=1
This commit is contained in:
parent
0cc7cb97a2
commit
15befc6493
4
.vscode/numbered-bookmarks.json
vendored
4
.vscode/numbered-bookmarks.json
vendored
@ -6,13 +6,13 @@
|
|||||||
-1,
|
-1,
|
||||||
30,
|
30,
|
||||||
44,
|
44,
|
||||||
694,
|
699,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
-1,
|
-1,
|
||||||
686
|
691
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
5
setup.sh
5
setup.sh
@ -656,6 +656,11 @@ if [ "${useSSL}" -eq 1 ]; then
|
|||||||
echo -e "updating ${warn}${configPath}/${file_mozmodern}${norm}"
|
echo -e "updating ${warn}${configPath}/${file_mozmodern}${norm}"
|
||||||
sed -i -e "s%${tag_dhparam}%${DHPath}%" "${configPath}/${file_mozmodern}"
|
sed -i -e "s%${tag_dhparam}%${DHPath}%" "${configPath}/${file_mozmodern}"
|
||||||
sed -i -e "s%${tag_cachain}%${CAChainPath}%" "${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
|
fi
|
||||||
|
|
||||||
# process LAN IP in nginx.conf
|
# process LAN IP in nginx.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user