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

pm2 startup as non root does not consider --hp argument #5910

Open
jeffrson opened this issue Nov 1, 2024 · 0 comments
Open

pm2 startup as non root does not consider --hp argument #5910

jeffrson opened this issue Nov 1, 2024 · 0 comments

Comments

@jeffrson
Copy link

jeffrson commented Nov 1, 2024

What's going wrong?

When pm2 startup -u user --hp /opt/user is not run as root, it generates a command that should be executed via sudo. That command, however, is generated with process.env.HOME instead of the actual argument of --hp.

How could we reproduce this issue?

Just execute
pm2 startup -u user --hp /opt/user
it will show command with --hp of executing user.

Supporting information

pm2 5.4.2

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

1 participant