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

Executable bit set on script folders #162

Closed

Conversation

szabolcsmaj
Copy link

Based on @pniederlag 's PR (GH-90) that fixes #89.

He only missed a parameter from chmod. If it's easier to fix and merge that then do it. My goal is to make it work.

@szabolcsmaj
Copy link
Author

Is anyone tending to PRs? @simahawk or @i-vyshnevska ?

@@ -30,7 +30,8 @@ on_exit() {
}

trap on_exit EXIT

# as executable bit will be inherited to the docker image we explicitly set executable bit on scripts
chmod -R +x start-entrypoint.d/ before-migrate-entrypoint.d/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure this change is needed, maybe @p-tombez give a point

Copy link
Member

@p-tombez p-tombez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the utility of this change for several reasons :

  1. Assuming one of the files in the directories doesn't have the execute bit on, the script will change it and git will detect it, thus making the local repository in a stale state (so the local repo is not anymore a source of truth)
  2. If anyone make a PR to add a script and forget to add +x on it, the Travis build will fail and that person would have to fix it before it is merged
  3. These images are intended to be inherited before being used. This fix will not prevent a failure if anyone add a script in these folders without +x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing executable bit in /start-entrypoint.d/001_set_report_url
3 participants