Add helper methods to detect installation presence
If a user is installing runit from source in a base image, as brought up in #62, they probably want to skip the build and installation of the package. We detect that runit is already installed in a robust way: * if the rpm is already installed, keeping the logic we had already * if the `runit` executable is actually executable, AND the `sv` command works (`sv` will return 100 when run with `--help` and have usage information on STDERR.)
Showing
libraries/helpers.rb
0 → 100644
Please register or sign in to comment