fix(SCRIPT): disable ssl configs without erroneous err msg

This commit is contained in:
Asif Bacchus 2021-01-06 12:44:40 -07:00
parent 639296a2b1
commit ce95e94092

View File

@ -106,7 +106,7 @@ if [ -f "/certs/fullchain.pem" ]; then
fi fi
else else
# ensure SSL configurations are disabled # ensure SSL configurations are disabled
mv /etc/nginx/ssl-config/*.conf /etc/nginx/ssl-config/*.conf.disabled for f in /etc/nginx/ssl-config/*; do mv "$f" "${f%%.*}.conf.disabled"; done
# if using default setup, ensure secure server block disabled # if using default setup, ensure secure server block disabled
if [ -f "/etc/nginx/sites/note" ]; then if [ -f "/etc/nginx/sites/note" ]; then
if [ -f "/etc/nginx/sites/05-test_secured.conf" ]; then if [ -f "/etc/nginx/sites/05-test_secured.conf" ]; then