You are here

install-drupal.sh in Lightning Layout 8.2

Same filename and directory in other branches
  1. 8 install-drupal.sh
#!/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.sh
View source
  1. #!/usr/bin/env bash
  2. SITE_DIR=$(pwd)/docroot/sites/default
  3. SETTINGS=$SITE_DIR/settings.php
  4. DB_URL=${DB_URL:-sqlite://db.sqlite}
  5. # Delete previous settings.
  6. if [[ -f $SETTINGS ]]; then
  7. chmod +w $SITE_DIR $SETTINGS
  8. rm $SETTINGS
  9. fi
  10. # Install Drupal.
  11. drush site:install standard --yes --config ./drush.yml --account-pass admin --db-url $DB_URL
  12. # Install sub-components.
  13. drush pm-enable entity_block lightning_banner_block lightning_landing_page lightning_map_block --yes
  14. # Make settings writable.
  15. chmod +w $SITE_DIR $SETTINGS