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
make setup.sh completely non-interactive #2201
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements! ❤️
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
@polarathene I removed one line from the |
@@ -52,7 +67,16 @@ function _show_local_usage | |||
Allows container access to the bind mount content that is private and | |||
unshared with other containers on a SELinux-enabled host. | |||
|
|||
${ORANGE}EXIT STATUS${RESET} | |||
${LBLUE}Podman${RESET} | |||
-R |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No show-stopper. But I was wondering, why you chose an upper-case 'R'. With the exception of -Z
, all other parameters are lower-case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The full story is this: I war originally trying to use --rootless
, but since getopts
does not care about double-dashed flags, and I did not want to increase the complexity of the script, I figured I should go with a single-letter-option. When I used r
- and I did in the beginning - I always found myself reminded of --recursive
and I knew some scripts where using an uppercase letter to denote that there is a long version available, so I chose -R
(without a long version availabe). Feel free to change this with another small PR before v10.2.0
is released if you think this is incorrect - I'd just like to get this PR merged :)
Description
Cleans up
setup.sh
and makes it possible to use the script in a completely non-interactive way. Added-R
flag. Moved ENV variables to the top, removed unnecessary functions and renamed functions.This PR should be the last one added to the
10.2.0
milestone. This PR is not a breaking change. Fixes a regression for SELinux (usedOPTARG
whereOPT
was actually correct).Follow up on #2179
Type of change
Checklist:
docs/
)