make setup.sh completely non-interactive#2201
Conversation
Co-authored-by: Brennan Kinney <[email protected]>
|
@polarathene I removed one line from the |
|
|
||
| ${ORANGE}EXIT STATUS${RESET} | ||
| ${LBLUE}Podman${RESET} | ||
| -R |
There was a problem hiding this comment.
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.
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.shand makes it possible to use the script in a completely non-interactive way. Added-Rflag. Moved ENV variables to the top, removed unnecessary functions and renamed functions.This PR should be the last one added to the
10.2.0milestone. This PR is not a breaking change. Fixes a regression for SELinux (usedOPTARGwhereOPTwas actually correct).Follow up on #2179
Type of change
Checklist:
docs/)