Skip to content

A simple script to update the Immich server

License

Notifications You must be signed in to change notification settings

Rubeast/immich-updater

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Changes in this fork

First time forking. Be gentle.

Changes:

  • More error handling
  • More Console feedback
  • Logging to the IMMICH_DIR

Immich Updater

Simple and dumb Immich server updater.

Compares the current server version with the version of the latest release on Github. If there has been a major version update OR the release notes say "breaking change" (case-insensitive) anywhere, then it aborts. Otherwise, if there has been a version change, will do docker pull, docker compose up -d.

Limitations

This script is DUMB!

It's literally looking for a string in the release notes.

Also, this script only looks at the notes of the LATEST release. That means that it needs to be run often (daily? weekly?) to make sure that it does not miss a "breaking change" release between runs.

Installation & Running

  1. Copy the script to a location of your choice. I recommend /etc/cron.daily/ or /etc/cron.weekly/ so that it runs on a schedule (see Limitations).
    • remember to take the extension off the file name, or the script will not be executed.
  2. Edit variables at the top of the script to suit your needs:
    • IMMICH_DIR is the location of your Immich docker-compose.yml.
    • DELAY_DAYS allows you to wait some days after a new release, before updating.
  3. Make it executable.

If there is nothing to do, there is no output. Anything else prints messages to STDOUT.

Requirements

  • Python v3.8+
  • Python sh module v2+
  • Docker compose

About

A simple script to update the Immich server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%