add xlxapi-update

This commit is contained in:
Fabian Franz 2024-06-09 12:35:50 +02:00
parent 890e488059
commit bad324fdcf
3 changed files with 21 additions and 0 deletions

3
scripts/xlxapi-update Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
/usr/bin/wget -q -O- http://localhost/index.php?callhome=1 > /dev/null

View file

@ -0,0 +1,9 @@
[Unit]
Description=XLX API Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/xlxapi-update

View file

@ -0,0 +1,9 @@
[Unit]
Description=Run xlx api call every day (if nobody opens the dashboard)
[Timer]
OnCalendar=*-*-* 1:0:0
Unit=xlxapi-update.service
[Install]
WantedBy=multi-user.target