From e8c974d213556849927323e93b3cb0319754f7d1 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Mon, 12 Aug 2024 13:20:44 +0300 Subject: [PATCH] Add --site-mail to make drush-si --- make/drupal.mk | 3 ++- tests/outputs/drush-si.txt | 4 ++++ tests/outputs/fix-symfony.txt | 6 ------ 3 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 tests/outputs/drush-si.txt diff --git a/make/drupal.mk b/make/drupal.mk index 5f81548..e8c9a4a 100644 --- a/make/drupal.mk +++ b/make/drupal.mk @@ -7,6 +7,7 @@ CLEAN_EXCLUDE += $(WEBROOT)/sites/default/files DRUPAL_DISABLE_MODULES ?= no DRUPAL_ENABLE_MODULES ?= no DRUPAL_PROFILE ?= minimal +DRUPAL_SITE_EMAIL ?= maintenance@druid.fi DRUPAL_SYNC_FILES ?= yes DRUPAL_SYNC_SOURCE ?= main DRUSH_RSYNC_MODE ?= Pakzu @@ -87,7 +88,7 @@ else endif drush-si: ## Site install $(call step,Do Drush site:install...\n) - $(call drush,si ${DRUSH_SI}) + $(call drush,si ${DRUSH_SI} --site-mail=$(DRUPAL_SITE_EMAIL)) PHONY += drush-deploy drush-deploy: ## Run Drush deploy diff --git a/tests/outputs/drush-si.txt b/tests/outputs/drush-si.txt new file mode 100644 index 0000000..1ed16e5 --- /dev/null +++ b/tests/outputs/drush-si.txt @@ -0,0 +1,4 @@ +drush-si IS_DRUPAL=yes DRUPAL_SITE_EMAIL=noreply@domain.tld +--- +printf "\n⭐ \033[0;33mDo Drush site:install...\n\033[0m\n" +drush si -y minimal --site-mail=noreply@domain.tld diff --git a/tests/outputs/fix-symfony.txt b/tests/outputs/fix-symfony.txt index 000941c..80f11ec 100644 --- a/tests/outputs/fix-symfony.txt +++ b/tests/outputs/fix-symfony.txt @@ -2,9 +2,3 @@ fix-symfony IS_SYMFONY=yes CS_FIXER_INSTALLED=yes RUN_ON=docker --- printf "\n⭐ \033[0;33mFix Symfony code style...\n\033[0m\n" docker compose exec app sh -c "vendor/bin/php-cs-fixer fix --ansi src" - - - - - -