summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9fa1889)
This is to preserve local changes in case of a re-bootstrap.
composer --working-dir=../ require drupal/devel
$DRUSH --yes en devel
composer --working-dir=../ require drupal/devel
$DRUSH --yes en devel
- cp sites/example.settings.local.php sites/default/settings.local.php
+ if [ ! -e sites/example.settings.local.php ];
+ then
+ cp sites/example.settings.local.php sites/default/settings.local.php
- # Disable some overly permissive settings
- sed -i -e "s/^\(\$settings\['rebuild_access'\]\).*$/\1 = FALSE;/g" sites/default/settings.local.php
- sed -i -e "s/^\(\$settings\['skip_permissions_hardening'\]\).*$/\1 = FALSE;/g" sites/default/settings.local.php
+ # Disable some overly permissive settings
+ sed -i -e "s/^\(\$settings\['rebuild_access'\]\).*$/\1 = FALSE;/g" sites/default/settings.local.php
+ sed -i -e "s/^\(\$settings\['skip_permissions_hardening'\]\).*$/\1 = FALSE;/g" sites/default/settings.local.php
- chmod 444 sites/default/settings.local.php
+ chmod 444 sites/default/settings.local.php
+ fi
if ! grep -q "^include \$app_root . '/' . \$site_path . '/settings.local.php';" sites/default/settings.php;
then
if ! grep -q "^include \$app_root . '/' . \$site_path . '/settings.local.php';" sites/default/settings.php;
then