Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(permissions): set perms on other .env files #93

Open
wants to merge 1 commit into
base: 6.x
Choose a base branch
from
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