Skip to content

Comments

Extract sudo calls from bash scripts in bin/#1

Open
mkuettel wants to merge 1 commit intodiva-exchange:developfrom
mkuettel:extract-sudo
Open

Extract sudo calls from bash scripts in bin/#1
mkuettel wants to merge 1 commit intodiva-exchange:developfrom
mkuettel:extract-sudo

Conversation

@mkuettel
Copy link

On some systems the user I want to run these scripts on are not in the sudoers group, but might be in the docker group.

Additionally, this is useful to check whether all of these elevated commands are actually needed.

Using this commit I'm testing this by calling the script setting the environment variable SUDO_CMD to an empty string. For example:

SUDO_CMD= bin/build.sh

Not sure if this is anything worthwhile, but here's my branch :)

@mkuettel
Copy link
Author

Confirmed locally that having a user in the docker group and running works:

$ SUDO_CMD= bin/build.sh

On some systems the user I want to run these scripts on are not in the
sudoers group, but might be in the docker group.

Additionally, this is useful to check whether all of these elevated
commands are actually needed.

Using this commit I'm testing this by calling the script setting the
environment variable SUDO_CMD to an empty string. For example:

    SUDO_CMD= bin/build.sh
@mkuettel
Copy link
Author

Do you want to merge this? Or should I adjust something?

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.

1 participant