35 lines
980 B
Bash
Executable file
35 lines
980 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
## Initialise the project
|
|
##
|
|
## Usage: fin init
|
|
|
|
fin start
|
|
|
|
fin run composer install
|
|
|
|
fin drush site:install -y
|
|
|
|
# Reset the site uuid.
|
|
fin drush config:set -y system.site uuid de7ba5dc-5795-4cb5-9d38-1edcc27be491
|
|
|
|
# Delete the uuid for shortcut.set.default so that config will import.
|
|
fin drush config:delete -y shortcut.set.default uuid
|
|
|
|
# Import config.
|
|
fin drush config:import -y --source=../config/sync
|
|
|
|
fin drush php:eval '\Drupal::service("Drupal\dtc_import\Service\Importer\CsvSpeakerImporter")->import()'
|
|
fin drush php:eval '\Drupal::service("Drupal\dtc_import\Service\Importer\CsvSessionImporter")->import()'
|
|
|
|
fin drush user:create api --password=api
|
|
fin drush user:role:add api_user api
|
|
|
|
# Set uuid for admin user.
|
|
fin drush sql:query "UPDATE users SET uuid = '11dad4c2-baa8-4fb2-97c6-12e1ce925806' WHERE uid = 1"
|
|
|
|
# Set uuid for API user.
|
|
fin drush sql:query "UPDATE users SET uuid = '63936126-87cd-4166-9cb4-63b61a210632' WHERE uid = 7"
|
|
|
|
fin uli
|