Only run if there is no built flag

This commit is contained in:
Oliver Davies 2020-10-29 12:10:44 +00:00
parent 38fb6002fb
commit 4d70c67c43
2 changed files with 3 additions and 2 deletions

View file

@ -14,6 +14,7 @@ case $1 in
install) install)
drush site:install -y --account-pass=admin123 --existing-config drush site:install -y --account-pass=admin123 --existing-config
drush user:login drush user:login
touch .flag-built
;; ;;
refresh) refresh)

View file

@ -11,8 +11,8 @@ additional_fqdns: []
provider: default provider: default
hooks: hooks:
post-start: post-start:
- composer: install - exec: "[[ ! -f .flag-built ]] && composer install || exit 0"
- exec-host: ddev theme development - exec-host: "[[ ! -f .flag-built ]] && ddev theme development || exit 0"
post-import-db: post-import-db:
- exec: drush sql-sanitize -y --sanitize-password=password - exec: drush sql-sanitize -y --sanitize-password=password
- exec: drush cr - exec: drush cr