Created Keeping VueTorrent up-to-date automatically (markdown)

Rémi Marseault 2024-02-26 21:18:38 +01:00
parent a39abb5bbd
commit 01e25ccafb

@ -0,0 +1,48 @@
The simplest way to stay updated is to use the `latest-release` (or `nightly-release`) branch.
***Note that these methods require that you downloaded VueTorrent using the git method***
## Using crontab
Start by running `crontab -e` to open your cron configuration file.
After that you can add a new job that will periodically check for updates. You can use [Crontab Guru](https://crontab.guru/) for any help with setting up the command.
Example: `0 * * * * git -C /path/to/vuetorrent pull` will run every hour.
## Using systemd
For that method, you'll need SSH and root access to your server / device running qBittorrent.
You'll need to create 2 files:
`/etc/systemd/system/update-vuetorrent.service`
```service
[Unit]
Description=Keep VueTorrent up-to-date service
[Service]
Type=simple
User=larsluph # Replace with the owner user
Group=users # Replace with the owner group
ExecStart=git -C /path/to/vuetorrent pull # Update vuetorrent path accordingly
```
`/etc/systemd/system/update-vuetorrent.timer`
```service
[Unit]
Description=Keep VueTorrent up-to-date timer
[Timer]
OnBootSec=1min
OnUnitActiveSec=1h
[Install]
WantedBy=timers.target
```
Once both files are created, you need to install the timer:
- `sudo systemctl daemon-reload`
- `sudo systemctl enable update-vuetorrent.timer`
- `sudo systemctl start update-vuetorrent.timer`