This is a simple proof of concept for doing Ombi updates live. The requirements to use this are:
- You must have Ombi already installed and it must be running (obviously, since Ombi kicks off the update)
- You must be using systemd to manage Ombi
- The user that Ombi runs as must have permissions to run
systemctl restart
- Use
visudo
to edit your sudoers and add a line like:
Where ombiuser is the user Ombi runs as. You should also sanity check your system to make sure thatombiuser ALL=NOPASSWD: /bin/systemctl restart ombi.service
systemctl
is at/bin/systemctl
and that your Ombi unti file is calledombi.service
.
- Use
- Your system must be relatively up-to-date. (Currently, that means bash version >4 and a
ps
command that has been updated with systemd support) - Running external scripts just started working recently and it's still not clear if it was due to a change in Ombi or a change in Mono. This has been tested on a system running mono 5.12.0.226. YMMV with a different version.