Subscribe to my telegram channel: https://t.me/HsUpdates
- Install dotnet-runtime-3.1: https://docs.microsoft.com/en-us/dotnet/core/install/linux
- Download latest release here.
- Unzip it somewhere. (For example is /home/user/HsUpdateChecker/)
- Edit settings in appsettings.json.
- Create new service:
Run command:
sudo nano /etc/systemd/system/HsUpdateChecker.service
then paste following into nano:
[Unit]
Description=HsUpdateChecker service
Wants=network-online.target
After=network-online.target systemd-networkd-wait-online.service
[Service]
Type=exec
WorkingDirectory=/home/user/HsUpdateChecker
ExecStart=/usr/bin/dotnet /home/user/HsUpdateChecker/HsUpdateChecker.dll
then press ctrl+s, then ctrl+x.
- Create new timer:
Run command:
sudo nano /etc/systemd/system/HsUpdateChecker.timer
then paste folowing into nano:
[Unit]
Description=Execute HsUpdateChecker every 15 minutes
[Timer]
OnCalendar=*:0/15
Unit=HsUpdateChecker.service
[Install]
WantedBy=timers.target
then press ctrl+s, then ctrl+x.
- Enable timer by tuping following command:
sudo systemctl enable HsUpdateChecker.timer
sudo systemctl start HsUpdateChecker.timer
- Download latest release here.
- Unzip somewhere.
- Edit settings in appsettings.json.
- Create new task for task scheduler and add "on a schedule" trigger.