Default autostart update-check interval to 1 minute

The no-change path is a single `git fetch`, so polling master every minute
costs nothing and lines up with the VPS's own 60s deploy timer instead of
lagging it by up to five.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Brandon Li
2026-09-02 13:38:59 -05:00
co-authored by Claude Opus 4.8
parent 8aeb9cea81
commit b44416e8eb
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -24,14 +24,16 @@
Idempotent - safe to re-run. Idempotent - safe to re-run.
.PARAMETER IntervalMinutes .PARAMETER IntervalMinutes
How often to check master for updates. Default 5. How often to check master for updates. Default 1 — the no-change path is a
single `git fetch`, so checking every minute costs nothing and matches the
VPS's own 60s deploy timer.
.PARAMETER SkipClicker .PARAMETER SkipClicker
Register only the dashboard, leaving the clicker to be run by hand. Register only the dashboard, leaving the clicker to be run by hand.
#> #>
[CmdletBinding()] [CmdletBinding()]
param( param(
[int]$IntervalMinutes = 5, [int]$IntervalMinutes = 1,
[switch]$SkipClicker [switch]$SkipClicker
) )
+4 -2
View File
@@ -11,11 +11,13 @@
# session, which is not incidental: the clicker synthesises real X11 input and # session, which is not incidental: the clicker synthesises real X11 input and
# needs a desktop with DISPLAY set. A systemd system service has neither. # needs a desktop with DISPLAY set. A systemd system service has neither.
# #
# ./scripts/install-autostart.sh [--interval-minutes 5] [--skip-clicker] # ./scripts/install-autostart.sh [--interval-minutes 1] [--skip-clicker]
set -euo pipefail set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)" ROOT="$(cd "$(dirname "$0")/.." && pwd)"
INTERVAL=5 # Default 1: the no-change path is a single `git fetch`, so a per-minute check
# costs nothing and matches the VPS's own 60s deploy timer.
INTERVAL=1
SKIP_CLICKER=0 SKIP_CLICKER=0
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do