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
@@ -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