mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-15 04:30:05 +03:00
Created Keeping VueTorrent up-to-date automatically (markdown)
parent
a39abb5bbd
commit
01e25ccafb
1 changed files with 48 additions and 0 deletions
48
Keeping-VueTorrent-up‐to‐date-automatically.md
Normal file
48
Keeping-VueTorrent-up‐to‐date-automatically.md
Normal file
|
@ -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`
|
||||
|
Loading…
Add table
Reference in a new issue