Deploy gitlab-pages only if it's enabled

This commit is contained in:
solidnerd 2017-03-18 14:41:24 +01:00
parent d50a125fd9
commit 54a094ed98
No known key found for this signature in database
GPG Key ID: C300D44AB5469BE5

View File

@ -1295,7 +1295,7 @@ install_configuration_templates() {
## ${GITLAB_PAGES_NGINX_CONFIG}
if [[ ${GITLAB_PAGES_HTTPS} == true ]]; then
if [[ ${GITLAB_PAGES_ENABLED} == true ]]; then
if [[ -f ${SSL_PAGES_CERT_PATH} && -f ${SSL_PAGES_KEY_PATH} ]]; then
install_template root: nginx/gitlab-pages-ssl ${GITLAB_PAGES_NGINX_CONFIG}
else