-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.conf.example
More file actions
36 lines (29 loc) · 1.69 KB
/
update.conf.example
File metadata and controls
36 lines (29 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# AstrBot Auto-Update Configuration
# Copy this file to /etc/astrbot/update.conf to enable auto-update timer.
# Or edit /etc/systemd/system/astrbot-update.timer.d/override.conf to customize the schedule.
# ── Update Behavior ────────────────────────────────────────────────────────────
# Seconds to monitor instance stability after update before committing.
# If any instance crashes within this window, automatic rollback is triggered.
# Default: 60
# UPDATE_STABILITY_SECS=60
# Enable automatic rollback on update failure.
# 1 = rollback (unmount overlay, revert to previous state)
# 0 = leave changes as-is for manual recovery
# Default: 1
# UPDATE_AUTO_ROLLBACK=1
# ── Instance Selection ──────────────────────────────────────────────────────────
# Comma-separated list of instances to update (default: all).
# Leave empty or commented to update all instances.
# UPDATE_INSTANCES="light,test"
# ── Timer Schedule ────────────────────────────────────────────────────────────
# systemd timer schedule (OnCalendar format).
# Default: daily at 3 AM with up to 1 hour random delay.
# To change, create a drop-in:
# sudo systemctl edit astrbot-update.timer
# [Timer]
# OnCalendar=*-*-* 06:00:00
# RandomizedDelaySec=1800
#
# Or disable the timer entirely:
# sudo systemctl stop astrbot-update.timer
# sudo systemctl disable astrbot-update.timer