diff --git a/src/usr/local/emhttp/plugins/tailscale/check-tailscale-key.sh b/src/usr/local/emhttp/plugins/tailscale/check-tailscale-key.sh deleted file mode 100755 index 8db58a7..0000000 --- a/src/usr/local/emhttp/plugins/tailscale/check-tailscale-key.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/usr/local/emhttp/plugins/tailscale/check-expiration.php | logger -t unraid-tailscale \ No newline at end of file diff --git a/src/usr/local/emhttp/plugins/tailscale/daily.sh b/src/usr/local/emhttp/plugins/tailscale/daily.sh new file mode 100755 index 0000000..e4fbea5 --- /dev/null +++ b/src/usr/local/emhttp/plugins/tailscale/daily.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/usr/local/emhttp/plugins/tailscale/daily.php 1>/dev/null 2>&1 diff --git a/src/usr/local/emhttp/plugins/tailscale/include/daily/ping.php b/src/usr/local/emhttp/plugins/tailscale/include/daily/ping.php index 6ba8d6d..b69758d 100755 --- a/src/usr/local/emhttp/plugins/tailscale/include/daily/ping.php +++ b/src/usr/local/emhttp/plugins/tailscale/include/daily/ping.php @@ -16,6 +16,8 @@ $queryString = http_build_query($query); + sleep(rand(0, 60)); + logmsg("Sending usage data: {$queryString}"); $request = file_get_contents("{$endpoint}?{$queryString}");