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] direxec should not try to execute directories #508

Merged

Conversation

ap-wtioit
Copy link
Contributor

@ap-wtioit ap-wtioit commented Jul 4, 2022

In f931b53 direxec was converted from bash to python. In the python version we should not try to execute directories. As the execute flag for directories only means that the user can change into the directory not that the directory is an executable.

This happens when a user adds a custom python script to entrypoint.d and runs doodba built with COMPILE: "true". for this case a __pycache__ directory is created in /opt/odoo/custom/entrypoint.d/ that causes the following error:

PermissionError: [Errno 13] Permission denied: '/opt/odoo/custom/entrypoint.d/__pycache__'

Info @wt-io-it

@ap-wtioit ap-wtioit force-pushed the master-fix_entrypointd_python_github branch 2 times, most recently from 6915fe6 to 83212fa Compare July 4, 2022 12:09
@ap-wtioit ap-wtioit changed the title [WIP] test: add test for entrypoint.d python script with compile true [FIX] direxec should not try to execute directories Jul 4, 2022
@ap-wtioit
Copy link
Contributor Author

Updated the merge request to reflect the information gathered by the investigation of the #509 issue after discovering and fixing the cause.

@pedrobaeza
Copy link
Member

Can you please rebase?

@ap-wtioit ap-wtioit force-pushed the master-fix_entrypointd_python_github branch from 83212fa to 76e8ce3 Compare November 29, 2023 07:53
@ap-wtioit
Copy link
Contributor Author

rebased and all checks still passing

@pedrobaeza pedrobaeza merged commit 63861fa into Tecnativa:master Nov 29, 2023
6 checks passed
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.

2 participants