From: Antonio Ospite Date: Tue, 24 Oct 2017 10:55:20 +0000 (+0200) Subject: bootstrap.sh: disable some overly permissive settings in settings.local.php X-Git-Tag: v0.1.0~18 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/a99380160625287022cc2fbd6ac9ffb74da2ef07 bootstrap.sh: disable some overly permissive settings in settings.local.php This avoids warnings in the status report after "drin bootstrap --devel" --- diff --git a/libexec/bootstrap.sh b/libexec/bootstrap.sh index ff69fb0..75f245c 100755 --- a/libexec/bootstrap.sh +++ b/libexec/bootstrap.sh @@ -160,6 +160,11 @@ then $DRUSH --yes en devel 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 + chmod 444 sites/default/settings.local.php if ! grep -q "^include \$app_root . '/' . \$site_path . '/settings.local.php';" sites/default/settings.php;