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

Execute command inside bash instead of exec #698

Open
DCNick3 opened this issue Sep 15, 2021 · 3 comments
Open

Execute command inside bash instead of exec #698

DCNick3 opened this issue Sep 15, 2021 · 3 comments

Comments

@DCNick3
Copy link

DCNick3 commented Sep 15, 2021

Currently the command specified in Procfile is executed with exec, which does not seem to be in line what heroku does, as it breaks, for example, dotnetcore-buildpack (see jincod/dotnetcore-buildpack#145).

I propose to wrap the command executed in bash -c to support it:

    if [[ "$HEROKUISH_SETUIDGUID" == "false" ]]; then
        exec bash -c "$@"
    else
        exec setuidgid "$unprivileged_user" bash -c "$@"
    fi
@jrhodnik
Copy link

jrhodnik commented Oct 8, 2021

I ran into this issue as well. @jincod was able to make a patch to fix this but working the working directory isn't proper which breaks my apps that normally run fine on heroku, thus I must manually fix that in the app itself. See this issue comment for an example.

@josegonzalez
Copy link
Member

I'm not sure why eval was used, so I'm hesitant to change process execution like that. @progrium do you remember why we use eval instead of bash -c here? 389a74e#diff-ccd15731721e777c0db64b6a0c8374c2c22c512b18f8ab156306c98b64ca44c5R21

@progrium
Copy link
Contributor

progrium commented Oct 11, 2022 via email

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

No branches or pull requests

4 participants