1
0
Fork 0
mirror of https://github.com/VueTorrent/VueTorrent.git synced 2025-03-16 13:09:44 +03:00

as per

Daan Wijns 2024-03-08 15:34:46 +01:00
parent 4f3bd55c15
commit a564c2e08f

@ -20,12 +20,15 @@ You'll need to create 2 files:
```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
ExecStart=git -C /path/to/vuetorrent pull # Update vuetorrent path accordingly
WorkingDirectory=/path/to/vuetorrent # Replace with path to local VueTorrent git repository
ExecStart=git pull
```
`/etc/systemd/system/update-vuetorrent.timer`
@ -33,12 +36,13 @@ ExecStart=git -C /path/to/vuetorrent pull # Update vuetorrent path accordingly
[Unit]
Description=Keep VueTorrent up-to-date timer
[Timer]
OnBootSec=1min
OnUnitActiveSec=1h
[Install]
WantedBy=timers.target
WantedBy=multi-user.target
```
Once both files are created, you need to install the timer: