fix multiple errors switching test server blocks
This commit is contained in:
parent
4ec127184d
commit
9e9ac0adee
@ -32,14 +32,10 @@ if [ "$TLS13_ONLY" = FALSE ]; then
|
|||||||
mv /etc/nginx/config/mozIntermediate_ssl.conf.disabled \
|
mv /etc/nginx/config/mozIntermediate_ssl.conf.disabled \
|
||||||
/etc/nginx/config/mozIntermediate_ssl.conf
|
/etc/nginx/config/mozIntermediate_ssl.conf
|
||||||
|
|
||||||
# activate SSL test server block if it exists
|
if [ -f "/etc/nginx/sites/note" ]; then
|
||||||
if [ -f "/etc/nginx/sites/05-test_secured.conf" ]; then
|
# activate SSL test server block & deactivate normal one
|
||||||
mv /etc/nginx/sites/05-test_secured.conf.disabled \
|
mv /etc/nginx/sites/05-test_secured.conf.disabled \
|
||||||
/etc/nginx/sites/05-test_secured.conf
|
/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 \
|
mv /etc/nginx/sites/05-test_nonsecured.conf \
|
||||||
/etc/nginx/sites/05-test_nonsecured.conf.disabled
|
/etc/nginx/sites/05-test_nonsecured.conf.disabled
|
||||||
fi
|
fi
|
||||||
@ -54,14 +50,10 @@ elif [ "$TLS13_ONLY" = TRUE ]; then
|
|||||||
mv /etc/nginx/config/mozModern_ssl.conf.disabled \
|
mv /etc/nginx/config/mozModern_ssl.conf.disabled \
|
||||||
/etc/nginx/config/mozModern_ssl.conf
|
/etc/nginx/config/mozModern_ssl.conf
|
||||||
|
|
||||||
# activate SSL test server block if it exists
|
if [ -f "/etc/nginx/sites/note" ]; then
|
||||||
if [ -f "/etc/nginx/sites/05-test_secured.conf" ]; then
|
# activate SSL test server block & deactivate normal one
|
||||||
mv /etc/nginx/sites/05-test_secured.conf.disabled \
|
mv /etc/nginx/sites/05-test_secured.conf.disabled \
|
||||||
/etc/nginx/sites/05-test_secured.conf
|
/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 \
|
mv /etc/nginx/sites/05-test_nonsecured.conf \
|
||||||
/etc/nginx/sites/05-test_nonsecured.conf.disabled
|
/etc/nginx/sites/05-test_nonsecured.conf.disabled
|
||||||
fi
|
fi
|
||||||
|
2
build/sites/note
Normal file
2
build/sites/note
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
This entire directory should be overwritten via bind-mount in a production
|
||||||
|
environment
|
Loading…
Reference in New Issue
Block a user