From 8af5b36465e002d8089ea2537dffb2ebbc29cec0 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 30 Dec 2020 14:16:38 +0100 Subject: [PATCH] gitlab-ci-cd/drupal#1 Testing --- test-and-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-and-deploy.yml b/test-and-deploy.yml index b047007..c6982c7 100644 --- a/test-and-deploy.yml +++ b/test-and-deploy.yml @@ -67,8 +67,8 @@ stages: if [[ ! -n ${ID} ]]; then DBREQUIRED="yes" else - TABLES=$(docker exec ${COMPOSE_PROJECT_NAME}_mariadb_1 mysql -u drupal --password=drupal -e "show tables;" drupal 2>/dev/null|grep users) - if [[ ! -n ${TABLES} ]]; then + TABLES=$(docker exec -i ${COMPOSE_PROJECT_NAME}_mariadb_1 mysql -u drupal --password=drupal -e "show tables;" drupal) + if [[ "${TABLES}" != *"users_data"* ]]; then DBREQUIRED="yes" fi fi -- GitLab