Skip to content

Commit

Permalink
fix: daily cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaser committed Jul 16, 2023
1 parent c131c6f commit 73fc8f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/usr/local/emhttp/plugins/tailscale/check-tailscale-key.sh

This file was deleted.

3 changes: 3 additions & 0 deletions src/usr/local/emhttp/plugins/tailscale/daily.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

/usr/local/emhttp/plugins/tailscale/daily.php 1>/dev/null 2>&1
2 changes: 2 additions & 0 deletions src/usr/local/emhttp/plugins/tailscale/include/daily/ping.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

$queryString = http_build_query($query);

sleep(rand(0, 60));

logmsg("Sending usage data: {$queryString}");

$request = file_get_contents("{$endpoint}?{$queryString}");
Expand Down

0 comments on commit 73fc8f0

Please sign in to comment.