Giter Club home page Giter Club logo

updateombi's Introduction

updateOmbi

Update 12/21: I am not longer supporting this. However, it continues to work for my instance that is still running, and very well may for some time to come. Please feel free to take up the mantle.

Notes:

The assumptions for this script are that you are using Linux for your Ombi and the service is controlled with systemd.

There are several variables in use you can change to suit your environment:

  • SERVICE_NAME=ombi # Change this if your systemd service is not named 'ombi'.
  • OMBI_URL= # Change this to the current Ombi github URL if needed. Not Required.
  • SUPPRESS_OUTPUT= # (yes/no) Change this depending if you'd like to suppress the output from the script or not.
  • KEEP_BACKUP= # (yes/no) Change this depending if you'd like to keep the previous installation as backup or not.
  • STORAGE_DIR= # If using --storage parameter in service script then add that here.
  • SLACK_WEBHOOK= # Webhook found in Slack settings. Not required.
  • MESSAGE="Upgrading Ombi to v$VERSION" # Adjust if you'd like a different message to the alerts.
  • SLACK_CHANNEL=alerts # Adjust to the channel you'd use in Slack. Not required.
  • SLACK_USER=ombi # Change to the user you'd like the message to come through as. Not required.
  • DISCORD_WEBHOOK= # Copy and paste this just as you get it from Discord Integrations. Not required.

This works as a script you can put in (cp /link/to/script/updateOmbi.sh /etc/cron.daily) or symlink to (ln -s /link/to/script/updateOmbi.sh /etc/cron.daily) in /etc/cron.daily or hourly
That will run it as root
If you'd like it to not run it as root, then you should use visudo to add ombi ALL=NOPASSWD: /bin/systemctl stop ombi.service, /bin/systemctl start ombi.service to the sudoers file
Then you could run it under /var/spool/cron/ombi as an entry such as 0 0 0 ? * * * /link/to/script/updateOmbi.sh and that would run it daily at midnight

updateombi's People

Contributors

carnivorouz avatar entropydo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.