Skip to content

Keeping VueTorrent up‐to‐date automatically

Daan Wijns edited this page Mar 8, 2024 · 3 revisions

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 for any help with setting up the command.

Example: 0 * * * * git -C /path/to/vuetorrent pull will check for updates 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

[Unit]
Description=Keep VueTorrent up-to-date service
Wants=network-online.target
After=network-online.target nss-lookup.target

[Service]
Type=simple
User=larsluph  # Replace with the owner user
Group=users    # Replace with the owner group
WorkingDirectory=/path/to/vuetorrent # Replace with path to local VueTorrent git repository
ExecStart=git pull

/etc/systemd/system/update-vuetorrent.timer

[Unit]
Description=Keep VueTorrent up-to-date timer


[Timer]
OnBootSec=1min
OnUnitActiveSec=1h

[Install]
WantedBy=multi-user.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