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

Add an option in the configuration file to explicitly set which command to use for privilege elevation #175

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

Antiz96
Copy link
Owner

@Antiz96 Antiz96 commented Jun 20, 2024

This PR introduces the 'PrivilegeElevationCommand' option to the arch-update.conf configuration file which allows to explicitly set the command to be used to elevate privileges (sudo, doas, run0), so people can choose between them if they have multipe of those commands installed.

If this option isn't set, the default behavior is applied (first look for sudo, then doas, then run0).

Closes #173

…ation command to use

This commit introduces the 'PrivilegeElevationCommand' option to the arch-update.conf configuration file which allows to explicitely set the command to be used to elevate privileges (sudo, doas, run0), so people can choose between if they have multiple of them installed.

If this option isn't set, the default behavior is applied (first look for `sudo`, then `doas`, then `run0`).

Closes #173
@Antiz96 Antiz96 added this to the v2.1.0 milestone Jun 20, 2024
Copy link
Owner Author

@Antiz96 Antiz96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Antiz96 Antiz96 merged commit fbd3ca2 into main Jun 20, 2024
1 check passed
@Antiz96 Antiz96 changed the title Add an option in the configuration file to explicitely set which elevation command to use Add an option in the configuration file to explicitely set which command to use for privilege elevation Jun 20, 2024
@Antiz96 Antiz96 deleted the su_cmd_option branch June 20, 2024 17:28
@Antiz96 Antiz96 changed the title Add an option in the configuration file to explicitely set which command to use for privilege elevation Add an option in the configuration file to explicitly set which command to use for privilege elevation Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant