diff --git a/Formula/couchpotatoserver.rb b/Formula/couchpotatoserver.rb index 0f29e8ab357fe..c61e390aeeea9 100644 --- a/Formula/couchpotatoserver.rb +++ b/Formula/couchpotatoserver.rb @@ -6,41 +6,14 @@ class Couchpotatoserver < Formula license "GPL-3.0" head "https://github.com/CouchPotato/CouchPotatoServer.git" - bottle :unneeded - def install prefix.install_metafiles libexec.install Dir["*"] (bin+"couchpotatoserver").write(startup_script) end - def caveats - "CouchPotatoServer defaults to port 5050." - end - - plist_options manual: "couchpotatoserver" - - def plist - <<~EOS - - - - Label - #{plist_name} - Program - #{opt_bin}/couchpotatoserver - ProgramArguments - - --quiet - --daemon - - RunAtLoad - - UserName - #{`whoami`.chomp} - - - EOS + service do + run [opt_bin/"couchpotatoserver", "--quiet"] end def startup_script