Optional: automatically update osmc

seems there is only manual update. I’m using 4k for rented apartment and I’d actually hoped to be able to have the entire procedure of downloading/install/reboot done automatically. Any chance to have this as a an option. I understand that it can brake the system but i’d take the risk (since a backup is made anyway before installing the new version.

Any chance for this?

Would either do it via a cronjob or via any automatic ssh scricpt that you start from a central server.

or do it manually via ssh if you want confirmation that everything went OK.

I think I got this from someone on the forum, but here’s a script I have to do automatic updates:

if ping -q -c 1 -W 1 2>&1; then
    echo "Starting upgrade check process"
    apt-get update
    apt-get dist-upgrade -y
    echo "Ending upgrade check process"
    echo "Restarting media center in case an update required that"
    systemctl restart mediacenter

and the crontab entry to run it:

30 2 * * 1 /home/osmc/Scripts/update.sh >/var/log/update.log 2>&1

This has been discussed for some time.
We don’t have plans to introduce automatic updates for the forseeable future; as a potentially problematic update would be hard to diagnose (you wouldn’t know if you’d recently updated).

thanks for the reactions - I’ll carefully think about it :slight_smile:

Been running of automated updates for the last 2 ½ years without major issues all depends on your setup and how much you abuse your SD card