This repository was archived by the owner on Jan 13, 2026. It is now read-only.
Open
Conversation
Member
|
I have some doubts about this. While I think the use case is legit and it would be great if the script can handle it, I'm not sure about the safety. Not following symlinks means there's no way to inadvertently impact files and folders outside the target Drupal root folder (well, and any additional content folders provided). With this change, a wrong symlink could lead to a disaster(for example, a symlink to /). It is not usual, but sometimes wrong symlinks happen. How to solve this and cover the use case? I see two options that may work:
What you think? |
Contributor
Author
|
I prefer a flag to follow symlinks. It keeps things simple for the user and also works as a do it if you know what your doing flag. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It is usual to use deployment layout based on symlinks for some code or content files not managed in the app repository.
For example, this is the Ansistrano's layout I usually set up:
In this layout, both content folders (
files/andprivate/) and code files (settings.local.phpandsettings.infra.php) are symlinked.I propose for drupal_fix_permissions.sh to follow symlinks.