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

Run config remove as user instead of root #1127

Merged
merged 3 commits into from
Jun 4, 2021

Conversation

fhammerl
Copy link
Contributor

@fhammerl fhammerl commented Jun 1, 2021

Closes #1079

This PR ensures that when config.sh remove is called as part of uninstalling the runner as a service on a Linux machine, it is run as the current user instead of root. Calling it as root fails because the RUNNER_ALLOW_RUNASROOT environment variable (which we need to set to 1 in order to run config.sh as root) is usually set not set for root. The issue does a great job of explaining it.

@fhammerl fhammerl requested a review from a team as a code owner June 1, 2021 23:13
scripts/remove-svc.sh Outdated Show resolved Hide resolved
@TingluoHuang TingluoHuang merged commit d4cdb63 into actions:main Jun 4, 2021
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.

remove-svc.sh: sudo config.sh wipes the RUNNER_ALLOW_RUNASROOT env var
2 participants