• jtimberman's avatar
    Add helper methods to detect installation presence · 4bbca578
    jtimberman authored
    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
    * 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.)
default.rb 3.48 KB