diff --git a/templates/drupal-fix-permissions.sh.erb b/templates/drupal-fix-permissions.sh.erb index 3f163ae..fe62918 100644 --- a/templates/drupal-fix-permissions.sh.erb +++ b/templates/drupal-fix-permissions.sh.erb @@ -147,6 +147,8 @@ if [ -f "${drupal_path}/../composer.json" ]; then if [ -f "${drupal_path}/../.env" ]; then chmod 640 ${drupal_path}/../.env chown ${drupal_user}:${httpd_group} ${drupal_path}/../.env + chmod 640 ${drupal_path}/../.env.* + chown ${drupal_user}:${httpd_group} ${drupal_path}/../.env.* fi fi @@ -163,6 +165,8 @@ if [ -f "${drupal_path}/../load.environment.php" ]; then if [ -f "${drupal_path}/../.env" ]; then chmod 640 ${drupal_path}/../.env chown ${drupal_user}:${httpd_group} ${drupal_path}/../.env + chmod 640 ${drupal_path}/../.env.* + chown ${drupal_user}:${httpd_group} ${drupal_path}/../.env.* fi fi @@ -291,7 +295,6 @@ if [ "$private_files_path" ] && [ -d "$private_files_path" ] && [[ "$private_fil restorecon -RF ${private_files_path} & fi - # Check permissions for supporting directories. if [ "$dversion" -eq 7 ] && [ -d "${drupal_path}/sites/all/vendor/bin" ]; then printf "Changing permissions of vendor/bin directories in "${drupal_path}/sites/all/vendor/bin" to "u+x"...\n" && \