From a7d53e2cd844b480e05acee295b054f17a5c05dd Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 25 Sep 2026 12:03:35 +0200 Subject: [PATCH] check for structure_sync module before drush im ib on deploy-drupal.sh --- assets/deploy-drupal.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/assets/deploy-drupal.sh b/assets/deploy-drupal.sh index 6c6c968..08f5cda 100755 --- a/assets/deploy-drupal.sh +++ b/assets/deploy-drupal.sh @@ -78,10 +78,17 @@ vendor/bin/drush updb -y --ansi step "Importing configuration" vendor/bin/drush config-import -y --ansi #drush csim prod -y -vendor/bin/drush im --choice safe --ansi -vendor/bin/drush ib --choice full --ansi -# step "Regen path aliases" +step "Importing content and blocks (structure_sync)" +# Only when structure_sync is enabled on this environment (config_split aware). +if vendor/bin/drush php:eval 'echo \Drupal::moduleHandler()->moduleExists("structure_sync") ? "yes" : "no";' 2>/dev/null | grep -q "yes"; then + vendor/bin/drush im --choice safe --ansi + vendor/bin/drush ib --choice full --ansi +else + echo "structure_sync is not enabled on this environment, skipping im/ib." +fi + +step "Regen path aliases" #drush pag all canonical_entities:node #drush pag all canonical_entities:taxonomy_term