install-drupal.sh in Lightning Layout 8.2
Same filename and directory in other branches
#!/usr/bin/env bash SITE_DIR=$(pwd)/docroot/sites/default SETTINGS=$SITE_DIR/settings.php DB_URL=${DB_URL:-sqlite://db.sqlite} # Delete previous settings. if [[ -f $SETTINGS ]]; then chmod +w $SITE_DIR $SETTINGS rm $SETTINGS fi # Install Drupal. drush site:install standard --yes --config ./drush.yml --account-pass admin --db-url $DB_URL # Install sub-components. drush pm-enable entity_block lightning_banner_block lightning_landing_page lightning_map_block --yes # Make settings writable. chmod +w $SITE_DIR $SETTINGS
File
install-drupal.shView source
- #!/usr/bin/env bash
-
- SITE_DIR=$(pwd)/docroot/sites/default
- SETTINGS=$SITE_DIR/settings.php
-
- DB_URL=${DB_URL:-sqlite://db.sqlite}
-
- # Delete previous settings.
- if [[ -f $SETTINGS ]]; then
- chmod +w $SITE_DIR $SETTINGS
- rm $SETTINGS
- fi
-
- # Install Drupal.
- drush site:install standard --yes --config ./drush.yml --account-pass admin --db-url $DB_URL
- # Install sub-components.
- drush pm-enable entity_block lightning_banner_block lightning_landing_page lightning_map_block --yes
-
- # Make settings writable.
- chmod +w $SITE_DIR $SETTINGS