Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion templates/drupal-fix-permissions.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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" && \
Expand Down