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 bug in switch_user and dry up common methods to a helpers module #272

Merged
merged 2 commits into from
Apr 3, 2021

Conversation

chriscz
Copy link
Contributor

@chriscz chriscz commented Mar 31, 2021

This PR fixes a bug in the switch_user function which would needlessly invoke sudo when the role user is the same as the sidekiq user.

Furthermore, this PR also reduces code duplication (which was likely the source of the above bug).

Fixes #267.

@seuros seuros merged commit a434606 into seuros:master Apr 3, 2021
@jcfjcosta
Copy link

Hi, I'm seeing that this fix is no longer present in master, causing issues with task sidekiq:install.
When deploying as unprivileged user (not in sudoers), the swich_user will instruct ssh to switch user, which is not what was supposed to happen.

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.

Incorrect fallback for sidekiq_user for Systemd
3 participants