diff --git a/scripts/install-autostart.ps1 b/scripts/install-autostart.ps1 index f440bb8..2193cf2 100644 --- a/scripts/install-autostart.ps1 +++ b/scripts/install-autostart.ps1 @@ -24,14 +24,16 @@ Idempotent - safe to re-run. .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 Register only the dashboard, leaving the clicker to be run by hand. #> [CmdletBinding()] param( - [int]$IntervalMinutes = 5, + [int]$IntervalMinutes = 1, [switch]$SkipClicker ) diff --git a/scripts/install-autostart.sh b/scripts/install-autostart.sh index d459382..d13325d 100755 --- a/scripts/install-autostart.sh +++ b/scripts/install-autostart.sh @@ -11,11 +11,13 @@ # session, which is not incidental: the clicker synthesises real X11 input and # 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 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 while [ $# -gt 0 ]; do