deactivate standard test page when SSL active

This commit is contained in:
Asif Bacchus 2019-10-17 16:17:16 -06:00
parent 166419490a
commit 4ec127184d

View File

@ -33,10 +33,16 @@ if [ "$TLS13_ONLY" = FALSE ]; then
/etc/nginx/config/mozIntermediate_ssl.conf
# activate SSL test server block if it exists
if [ -f "/etc/nginx/sites/05-test-secured.conf" ]; then
if [ -f "/etc/nginx/sites/05-test_secured.conf" ]; then
mv /etc/nginx/sites/05-test_secured.conf.disabled \
/etc/nginx/sites/05-test_secured.conf
fi
# deactivate standard test server block if it exists
if [ -f "/etc/nginx/sites/05-test_nonsecured.conf" ]; then
mv /etc/nginx/sites/05-test_nonsecured.conf \
/etc/nginx/sites/05-test_nonsecured.conf.disabled
fi
fi
elif [ "$TLS13_ONLY" = TRUE ]; then
if [ -f "/certs/fullchain.pem" ] && \
@ -49,10 +55,16 @@ elif [ "$TLS13_ONLY" = TRUE ]; then
/etc/nginx/config/mozModern_ssl.conf
# activate SSL test server block if it exists
if [ -f "/etc/nginx/sites/05-test-secured.conf" ]; then
if [ -f "/etc/nginx/sites/05-test_secured.conf" ]; then
mv /etc/nginx/sites/05-test_secured.conf.disabled \
/etc/nginx/sites/05-test_secured.conf
fi
# deactivate standard test server block if it exists
if [ -f "/etc/nginx/sites/05-test_nonsecured.conf" ]; then
mv /etc/nginx/sites/05-test_nonsecured.conf \
/etc/nginx/sites/05-test_nonsecured.conf.disabled
fi
fi
fi