# Cron script for auto updating homey on ubuntu

**URL:** <https://community.homey.app/t/cron-script-for-auto-updating-homey-on-ubuntu/147763>\
**Category:** Homey Self-Hosted Server\
**Tags:** homey-self-hosted\
**Created:** [December 24, 2025, 3:06pm UTC](https://community.homey.app/t/cron-script-for-auto-updating-homey-on-ubuntu/147763 "2025-12-24T15:06:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonvH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronvh/32/120861_2.png) [@RonvH](https://community.homey.app/u/RonvH)\
**Post date:** [December 24, 2025, 3:06pm UTC](https://community.homey.app/t/cron-script-for-auto-updating-homey-on-ubuntu/147763/1 "2025-12-24T15:06:02Z")

</div>

Hi

Does anybody can tell me how a can create a cron job to check and update Homey if there is a new update.  
It a long time ago that is i am played with linux (Ubuntu Server)  
Below is what do automated with a Cron Job.  
How to create a cron i know bot forgot how to make a script for below.

**2. Pull the latest Image**

In the terminal, execute the following command to download the latest version.

```auto
$ docker pull ghcr.io/athombv/homey-shs

```

### **3. Remove the old Container**

Stop and remove the old container by executing:

```auto
$ docker stop homey-shs
$ docker rm homey-shs

```

### **4. Start the new Container**

Finally, start a new container by executing:

```auto
$ docker run \
  --name homey-shs \
  --network host \
  --privileged \
  --detach \
  --restart unless-stopped \
  --volume ~/.homey-shs/:/homey/user/ \
  ghcr.io/athombv/homey-shs

```

Thanks  
Ron

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 24, 2025, 3:15pm UTC](https://community.homey.app/t/cron-script-for-auto-updating-homey-on-ubuntu/147763/2 "2025-12-24T15:15:45Z")

</div>

There’s lots of examples online, Ron.  
[https://duckduckgo.com/?t=fpas&q=how+to+create+a+bash+script+to+remove+and+pull+a+new+docker+image](https://duckduckgo.com/?t=fpas&q=how+to+create+a+bash+script+to+remove+and+pull+a+new+docker+image)
